diff --git a/roles/multi-node-bridge/tasks/main.yaml b/roles/multi-node-bridge/tasks/main.yaml index 046d35e61..20ee7e27e 100644 --- a/roles/multi-node-bridge/tasks/main.yaml +++ b/roles/multi-node-bridge/tasks/main.yaml @@ -1,9 +1,16 @@ - include: common.yaml +# Note (dmsimard) +# We explicitely declare a PATH environment variable because '/sbin' is not in +# PATH when using 'become: yes' on some distributions - include: switch.yaml + environment: + PATH: "{{ ansible_env.PATH }}:/sbin:/usr/sbin" when: inventory_hostname in groups['switch'] static: no - include: peer.yaml + environment: + PATH: "{{ ansible_env.PATH }}:/sbin:/usr/sbin" when: inventory_hostname in groups['peers'] static: no