]> git.phdru.name Git - ansible.git/blobdiff - playbooks/debian-update-all-apt.yml
Add a playbook to update debian systems using apt
[ansible.git] / playbooks / debian-update-all-apt.yml
diff --git a/playbooks/debian-update-all-apt.yml b/playbooks/debian-update-all-apt.yml
new file mode 100644 (file)
index 0000000..a804438
--- /dev/null
@@ -0,0 +1,13 @@
+- hosts: all
+  name: Update Debian systems with apt
+  become: yes
+  gather_facts: false
+  tasks:
+    - name: Updating host using apt
+      apt:
+        update_cache: yes
+        upgrade: dist
+    - name: Clean unwanted olderstuff
+      apt:
+        autoremove: yes
+        purge: yes