- name: Allow firewall for Control-plane node(s)
- name: CentOS Control-plane node(s) firewall rules
when: ansible_distribution | lower == "centos"
- name: Ubuntu Control-plane node(s) firewall rules
when: ansible_distribution | lower == "ubuntu"
when: inventory_hostname in groups['master']
- name: Allow firewall for Worker node(s)
- name: CentOS Worker node(s) firewall rules
when: ansible_distribution | lower == "centos"
- name: Ubuntu Worker node(s) firewall rules
when: ansible_distribution | lower == "ubuntu"
when: inventory_hostname in groups['node']