ansible: silence warnings in dist-upgrade playbook
authorKienan Stewart <kstewart@efficios.com>
Mon, 12 Jun 2023 15:36:36 +0000 (11:36 -0400)
committerKienan Stewart <kstewart@efficios.com>
Mon, 19 Jun 2023 18:05:10 +0000 (14:05 -0400)
Change-Id: I61cc2d88da6d72515089f6746730ff26f197ab8a

automation/ansible/playbooks/dist-upgrade.yml

index db9038069480e3f694cac1159aa7b09da9ac5491..57d011da6942571aeaddf00591096829b3fa341e 100644 (file)
@@ -1,5 +1,5 @@
 ---
-- name: Dist upgrade and optionnal reboot
+- name: Dist upgrade and optional reboot
   hosts: all
   vars:
     restart: 'no'
@@ -19,7 +19,9 @@
      apt: upgrade=dist
 
    - name: apt-get autoremove
-     command: apt-get -y --purge autoremove
+     command:
+       cmd: apt-get -y --purge autoremove
+       warn: false
      register: autoremove_output
      changed_when: "'The following packages will be REMOVED' in autoremove_output.stdout"
 
This page took 0.023629 seconds and 4 git commands to generate.