sysupdate.yml 573 Bytes
Newer Older
julian.gethmann's avatar
julian.gethmann committed
1
2
3
---
- name: Updating the system
  become: yes
julian.gethmann's avatar
julian.gethmann committed
4
5
6
  package:
    name: "*"
    state: latest
julian.gethmann's avatar
julian.gethmann committed
7
8
  tags:
  - skip_ansible_lint
julian.gethmann's avatar
julian.gethmann committed
9
  when: ansible_distribution != "Ubuntu"
julian.gethmann's avatar
julian.gethmann committed
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

- name: install autoupdate for Fedora
  become: yes
  package:
    name: "dnf-automatic"
    state: installed
  when: ansible_distribution == "Fedora"

- name: configure autoupdate
  become: yes
  copy:
    src: automatic.conf
    dest: /etc/dnf/automatic.conf
    mode: 644
    owner: root
    group: root
  when: ansible_distribution == "Fedora"
  notify:
    - enable automatic
julian.gethmann's avatar
julian.gethmann committed
29
    - enable automatic service