Merge pull request #2880 from hfinucane/rh7-paths

Fix #2261 by supporting Red Hat's limited PATH
This commit is contained in:
Rong Zhang 2018-09-15 19:27:22 +08:00 committed by GitHub
commit aa0da221e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,6 +70,8 @@
- name: Verify if br_netfilter module exists - name: Verify if br_netfilter module exists
shell: "modinfo br_netfilter" shell: "modinfo br_netfilter"
environment:
PATH: "{{ ansible_env.PATH}}:/sbin" # Make sure we can workaround RH's conservative path management
register: modinfo_br_netfilter register: modinfo_br_netfilter
failed_when: modinfo_br_netfilter.rc not in [0, 1] failed_when: modinfo_br_netfilter.rc not in [0, 1]
changed_when: false changed_when: false