From: Kienan Stewart Date: Mon, 12 Jun 2023 15:36:36 +0000 (-0400) Subject: ansible: silence warnings in dist-upgrade playbook X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8027d150be4d3a6f512857250dce3364271ea488;p=lttng-ci.git ansible: silence warnings in dist-upgrade playbook Change-Id: I61cc2d88da6d72515089f6746730ff26f197ab8a --- diff --git a/automation/ansible/playbooks/dist-upgrade.yml b/automation/ansible/playbooks/dist-upgrade.yml index db90380..57d011d 100644 --- a/automation/ansible/playbooks/dist-upgrade.yml +++ b/automation/ansible/playbooks/dist-upgrade.yml @@ -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"