]> git.phdru.name Git - ansible.git/commitdiff
Add a playbook to update debian systems using apt
authorOleg Broytman <phd@phdru.name>
Sun, 16 Jun 2019 15:23:02 +0000 (18:23 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 16 Jul 2019 18:28:30 +0000 (21:28 +0300)
Add `playbooks/debian-update-all-apt.yml`.

playbooks/debian-update-all-apt.yml [new file with mode: 0644]

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