aboutsummaryrefslogtreecommitdiffstats
path: root/roles/update
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-06-30 19:24:22 +0200
committerbinary <me@rgoncalves.se>2020-06-30 19:24:22 +0200
commit68c01a04cd6268c1dee66678c258cd4c240d5bb1 (patch)
tree1419eec22fa637159ba5e61ae1a6d9e11408a506 /roles/update
downloadinfrastructure-68c01a04cd6268c1dee66678c258cd4c240d5bb1.tar.gz
Cleanup for public release
Diffstat (limited to 'roles/update')
-rw-r--r--roles/update/tasks/main.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/roles/update/tasks/main.yml b/roles/update/tasks/main.yml
new file mode 100644
index 0000000..558807e
--- /dev/null
+++ b/roles/update/tasks/main.yml
@@ -0,0 +1,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.