zuul-jobs/roles/multi-node-bridge/tasks/main.yaml
Clark Boylan 121baa0d77 Revert "Use import_role on persistent-firewall"
This reverts commit 46b7b6e1c9.

This didn't end up changing the incidence of the iptables-save command
task failures.

Change-Id: I02e725d7330bc9b438a9864ea49510cca7fee524
2019-10-01 09:11:02 -07:00

23 lines
615 B
YAML

# Note (dmsimard)
# We explicitely declare a PATH environment variable because '/sbin' is not in
# PATH when using 'become: yes' on some distributions
- include: common.yaml
environment:
PATH: "{{ ansible_env.PATH }}:/sbin:/usr/sbin"
- 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
- name: Persist iptables rules
include_role:
name: persistent-firewall