From: Oleg Broytman Date: Mon, 2 Sep 2019 20:32:42 +0000 (+0300) Subject: Fix(phd): Ignore segfault on Fedora X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=2160823bc29a1c954e55048555a6e7678a23406d;p=ansible.git Fix(phd): Ignore segfault on Fedora --- diff --git a/playbooks/roles/phd/tasks/main.yml b/playbooks/roles/phd/tasks/main.yml index cb36caa..985a98e 100644 --- a/playbooks/roles/phd/tasks/main.yml +++ b/playbooks/roles/phd/tasks/main.yml @@ -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