system-config/playbooks/roles/iptables/handlers/main.yaml
Monty Taylor d93a661ae4 Run iptables in service playbooks instead of base
It's the only part of base that's important to run when we run a
service. Run it in the service playbooks and get rid of the
dependency on infra-prod-base.

Continue running it in base so that new nodes are brought up
with iptables in place.

Bump the timeout for the mirror job, because the iptables addition
seems to have just bumped it over the edge.

Change-Id: I4608216f7a59cfa96d3bdb191edd9bc7bb9cca39
2020-06-04 07:44:22 -05:00

20 lines
551 B
YAML

- name: Reload iptables (Debian)
command: '{{ reload_command }}'
when:
- not ansible_facts.is_chroot
- ansible_facts.os_family == 'Debian'
listen: "Reload iptables"
- name: Reload iptables (RedHat)
command: 'systemctl reload iptables'
when:
- not ansible_facts.is_chroot
- ansible_facts.os_family == 'RedHat'
listen: "Reload iptables"
- name: Reload ip6tables (Red Hat)
command: 'systemctl reload ip6tables'
when:
- not ansible_facts.is_chroot
- ansible_facts.os_family == 'RedHat'
listen: "Reload iptables"