commit 158eadb8d5efd819002815e6130e1120742abd08 Author: neingeist Date: Sat Mar 5 18:17:32 2016 +0100 initial commit diff --git a/files/automatic.conf b/files/automatic.conf new file mode 100644 index 0000000..c519551 --- /dev/null +++ b/files/automatic.conf @@ -0,0 +1,46 @@ +[commands] +# What kind of upgrade to perform: +# default = all available upgrades +# security = only the security upgrades +upgrade_type = default +random_sleep = 300 + +# Whether updates should be downloaded when they are available. +download_updates = yes + +# Whether updates should be applied when they are available. +# Note that if this is set to no, downloaded packages will be left in the +# cache regardless of the keepcache setting. +apply_updates = yes + + +[emitters] +# Name to use for this system in messages that are emitted. Default is the +# hostname. +# system_name = my-host + +# How to send messages. Valid options are stdio, email and motd. If +# emit_via includes stdio, messages will be sent to stdout; this is useful +# to have cron send the messages. If emit_via includes email, this +# program will send email itself according to the configured options. +# If emit_via includes motd, /etc/motd file will have the messages. +# Default is email,stdio. +emit_via = stdio + + +[email] +# The address to send email messages from. +email_from = root@example.com + +# List of addresses to send messages to. +email_to = root + +# Name of the host to connect to to send email messages. +email_host = localhost + + +[base] +# This section overrides dnf.conf + +# Use this to filter DNF core messages +debuglevel = 1 diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..f8204ce --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,8 @@ +- name: install dnf-automatic + dnf: name=dnf-automatic state=present + +- name: configure dnf-automatic + copy: src=automatic.conf dest=/etc/dnf/ + +- name: enable dnf-automatic timer + service: name=dnf-automatic.timer state=started enabled=yes