35 lines
775 B
YAML
35 lines
775 B
YAML
- name: Install EPEL repository
|
|
ansible.builtin.dnf:
|
|
name: epel-release
|
|
state: present
|
|
when: dnf_install_epel
|
|
become: true
|
|
|
|
- name: Install dnf-plugin-tracer.
|
|
ansible.builtin.dnf:
|
|
name: dnf-plugin-tracer
|
|
state: present
|
|
when: ansible_facts['distribution'] == "Fedora"
|
|
become: true
|
|
|
|
- name: Install dnf-automatic
|
|
ansible.builtin.dnf:
|
|
name: dnf-automatic
|
|
state: present
|
|
become: true
|
|
|
|
- name: Deploy automatic.conf
|
|
ansible.builtin.template:
|
|
src: automatic.conf.j2
|
|
dest: /etc/dnf/automatic.conf
|
|
mode: '0700'
|
|
owner: 'root'
|
|
group: 'root'
|
|
become: true
|
|
|
|
- name: Start and enable systemd timer for dnf-automatic
|
|
ansible.builtin.systemd:
|
|
name: dnf-automatic.timer
|
|
state: started
|
|
enabled: true
|
|
become: true
|