Commit e2c3b42f authored by Joanne Hugé's avatar Joanne Hugé

playbook/upgrader: remove useless playbook_sha256sum fact

ansible will exit if there is a sha256sum mismatch, no
need to check rc code
parent 8a656404
......@@ -61,19 +61,18 @@
- name: Check uncompressed archive sha256sum
shell: cd /opt/upgrader/tmp && find . -type f ! -name 'sha256sum' -print0 | LC_ALL=C sort -z | xargs -0 sha256sum | sha256sum --check sha256sum
register: playbook_sha256sum
- shell: cp -R /opt/upgrader/tmp /opt/upgrader/playbook
when: playbook_folder.stat.exists == False and playbook_sha256sum.rc == 0
when: playbook_folder.stat.exists == False
- stat: path=/opt/upgrader/tmp/hosts
register: hosts_file
- shell: rm -rf /opt/upgrader/playbook-tmp
when: hosts_file.stat.exists == True and playbook_sha256sum.rc == 0
when: hosts_file.stat.exists == True
- shell: cp -R /opt/upgrader/tmp /opt/upgrader/playbook-tmp
when: hosts_file.stat.exists == True and playbook_sha256sum.rc == 0
when: hosts_file.stat.exists == True
- name: Save new archive MD5
stat:
......
f7db67d2806f9f32c0e9b3dfe3979a8ec73df099ecb3124a3f788171947150b8 -
f2ded4ea43a9b05bd99bc07fdb07c12a51bf0aa1fe07c83a24d5ac1e8322ac85 -
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment