From 2160823bc29a1c954e55048555a6e7678a23406d Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 2 Sep 2019 23:32:42 +0300 Subject: [PATCH] Fix(phd): Ignore segfault on Fedora --- playbooks/roles/phd/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5