Use pure yaml format for tasks
This commit is contained in:
parent
d5b93c4d50
commit
186b357b48
1 changed files with 10 additions and 3 deletions
|
@ -7,19 +7,26 @@
|
|||
#
|
||||
|
||||
- name: install dnf-automatic
|
||||
dnf: name=dnf-automatic state=present
|
||||
dnf:
|
||||
name: dnf-automatic
|
||||
state: present
|
||||
tags:
|
||||
- packages
|
||||
when: ansible_distribution == 'Fedora' and ansible_distribution_major_version|int > 21
|
||||
|
||||
- name: install /etc/dnf/automatic.conf
|
||||
template: src=automatic.conf.j2 dest=/etc/dnf/automatic.conf mode=0644
|
||||
template:
|
||||
src: automatic.conf.j2
|
||||
dest: /etc/dnf/automatic.conf
|
||||
mode: 0644
|
||||
tags:
|
||||
- config
|
||||
when: ansible_distribution == 'Fedora' and ansible_distribution_major_version|int > 21
|
||||
|
||||
- name: enable and start dnf-automatic
|
||||
command: systemctl enable dnf-automatic.timer creates=/etc/systemd/system/basic.target.wants/dnf-automatic.timer
|
||||
command: systemctl enable dnf-automatic.timer
|
||||
args:
|
||||
creates: /etc/systemd/system/basic.target.wants/dnf-automatic.timer
|
||||
tags:
|
||||
- config
|
||||
when: ansible_distribution == 'Fedora' and ansible_distribution_major_version|int > 21
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue