12345678910111213141516171819202122 |
- ---
- - include: ../evaluate_groups.yml
- vars:
- # Do not allow adding hosts during upgrade.
- g_new_master_hosts: []
- g_new_node_hosts: []
- - include: ../initialize_facts.yml
- - name: Ensure firewall is not switched during upgrade
- hosts: oo_all_hosts
- tasks:
- - name: Check if iptables is running
- command: systemctl status iptables
- changed_when: false
- failed_when: false
- register: service_iptables_status
- - name: Set fact os_firewall_use_firewalld FALSE for iptables
- set_fact:
- os_firewall_use_firewalld: false
- when: "'Active: active' in service_iptables_status.stdout"
|