aboutsummaryrefslogtreecommitdiffstats
path: root/roles/update/tasks/main.yml
blob: 558807eee1cc890e494612f8aafc74b23a371581 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

# =========================================================================== #
#                   __                          __      __     
#       _________  / /__       __  ______  ____/ /___ _/ /____ 
#      / ___/ __ \/ / _ \     / / / / __ \/ __  / __ `/ __/ _ \
#     / /  / /_/ / /  __/    / /_/ / /_/ / /_/ / /_/ / /_/  __/
#    /_/   \____/_/\___(_)   \__,_/ .___/\__,_/\__,_/\__/\___/ 
#                                /_/
# =========================================================================== #

---
- name: Upgrading CentOs packages
  dnf:
    name: "*"
    state: latest
  when: ansible_distribution == "CentOs"

- name: Updating Debian packages
  apt:
    update_cache: yes
  when: ansible_distribution == "Debian"

- name: Upgrading Debian packages to latest
  apt:
    upgrade: dist
  when: ansible_distribution == "Debian"

remember that computers suck.