view tasks/setting-firewalld.yml @ 7:c3ec7761518a

update 2018
author mir3636
date Tue, 18 Sep 2018 17:11:38 +0900
parents 10185cc821e4
children 4545b6456623
line wrap: on
line source

- name: Setting Firewalld
  firewalld: permanent=true service={{ item.service }} state={{ item.state }}
  with_items:
    - { service: http, state: enabled }
    - { service: https, state: enabled }
  become: yes

- name: Restart service
  service: name=firewalld state=restarted enabled=yes
  become: yes