X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=automation%2Fansible%2Fplaybooks%2Fdist-upgrade.yml;h=57d011da6942571aeaddf00591096829b3fa341e;hb=4f6c1ba91db07c3c42f7f294f4e75ee61227d48a;hp=13cce7373ec2262cabffaabdd6791b00d7da4f41;hpb=3ea0152b9cf266cf1ea0ebaa3c2a475cd056b94a;p=lttng-ci.git diff --git a/automation/ansible/playbooks/dist-upgrade.yml b/automation/ansible/playbooks/dist-upgrade.yml index 13cce73..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' @@ -18,8 +18,10 @@ - name: apt-get dist-upgrade apt: upgrade=dist - - name: apt-get autoremove - command: apt-get -y --purge autoremove + - name: apt-get 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" @@ -30,7 +32,7 @@ ignore_errors: true when: reboot == "yes" register: last_result - + - name: wait for the server to reboot local_action: wait_for host={{ inventory_hostname }} port=22 @@ -38,4 +40,4 @@ timeout=300 state=started when: last_result.changed - sudo: false + become: false