change line in file instead of copy the whole config

This commit is contained in:
neingeist 2017-11-12 14:30:27 +01:00
parent eda7c5b59b
commit 89e40ca874
2 changed files with 4 additions and 82 deletions

View file

@ -2,7 +2,10 @@
dnf: name=dnf-automatic state=present
- name: configure dnf-automatic
copy: src=automatic.conf dest=/etc/dnf/
lineinfile:
dest=/etc/dnf/automatic.conf
regexp="^apply_updates"
line="apply_updates = yes"
- name: enable dnf-automatic timer
service: name=dnf-automatic.timer state=started enabled=yes