]> git.phdru.name Git - ansible.git/commitdiff
Fix(phd): Ignore segfault on Fedora
authorOleg Broytman <phd@phdru.name>
Mon, 2 Sep 2019 20:32:42 +0000 (23:32 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 2 Sep 2019 20:32:42 +0000 (23:32 +0300)
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