]> git.phdru.name Git - ansible.git/blobdiff - playbooks/roles/phd/tasks/main.yml
Fix(phd): Ignore segfault on Fedora
[ansible.git] / playbooks / roles / phd / tasks / main.yml
index cb36caa7276bb51b725765e795f14361c1f3af50..985a98ec9d3a9b16d5a446c74839d956363f6573 100644 (file)
@@ -40,6 +40,8 @@
       unarchive:
         src: ~/archive/STORE/phd/Home/phd.tar.bz2
         dest: /home
+      register: phd_extracted
+      failed_when: "(ansible_facts.os_family == 'Debian' and 'rc' in phd_extracted and phd_extracted.rc != 0) or (ansible_facts.os_family == 'RedHat' and ('rc' in phd_extracted and phd_extracted.rc not in [0, 139]))"
 
     - name: Add alias
       become: true