change line in file instead of copy the whole config
This commit is contained in:
parent
eda7c5b59b
commit
89e40ca874
2 changed files with 4 additions and 82 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue