Sfoglia il codice sorgente

centos and debian update playbooks

Douglas Andreani 5 anni fa
commit
39e881b1f5
2 ha cambiato i file con 32 aggiunte e 0 eliminazioni
  1. 14 0
      centos_update.yml
  2. 18 0
      debian_update.yml

+ 14 - 0
centos_update.yml

@@ -0,0 +1,14 @@
+---
+- hosts: omega
+  become_user: root
+  become: yes
+  tasks:
+    - name: update the system
+      yum:
+        name: "*"
+        state: latest
+    - name: start cockpit
+      service:
+        name: cockpit
+        state: started
+

+ 18 - 0
debian_update.yml

@@ -0,0 +1,18 @@
+---
+- hosts: debian
+  become_user: root
+  become: yes
+  tasks:
+    - name: update the system
+      apt:
+        upgrade: dist
+        update_cache: yes
+
+    - name: Remove useless packages from the cache
+      apt:
+        autoclean: yes
+
+    - name: Remove dependencies that are no longer required
+      apt:
+        autoremove: yes
+