---
- name: Open firewalld port for etcd
  firewalld: port={{ item }}/tcp permanent=false state=enabled
  # in case this is also a minion where firewalld turned off
  ignore_errors: yes
  with_items:
        - 2379
        - 2380

- name: Save firewalld port for etcd
  firewalld: port={{ item }}/tcp permanent=true state=enabled
  # in case this is also a minion where firewalld turned off
  ignore_errors: yes
  with_items:
        - 2379
        - 2380
