Cleaning up templates for dnf-automatic
This commit is contained in:
parent
9e87e0aad6
commit
ec5e6d3dff
7 changed files with 16 additions and 8 deletions
|
@ -42,9 +42,18 @@
|
|||
recurse: yes
|
||||
state: directory
|
||||
|
||||
- name: Deploy dnf-automatic install service override
|
||||
- name: Deploy dnf-automatic install service override (YUM versions)
|
||||
template:
|
||||
src: "dnf-automatic-install.service-{{ ansible_distribution_major_version }}.j2"
|
||||
src: "dnf-automatic-install.service-yum.j2"
|
||||
dest: /etc/systemd/system/dnf-automatic-install.service.d/override.conf
|
||||
become: true
|
||||
notify: Daemon Reload
|
||||
when: ansible_distribution_major_version == 7
|
||||
|
||||
- name: Deploy dnf-automatic install service override (DNF versions)
|
||||
template:
|
||||
src: "dnf-automatic-install.service-dnf.j2"
|
||||
dest: /etc/systemd/system/dnf-automatic-install.service.d/override.conf
|
||||
become: true
|
||||
notify: Daemon Reload
|
||||
when: ansible_distribution_major_version != 7
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue