Skip to content

Commit

Permalink
firewalld-start: add role
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed Oct 20, 2024
1 parent 39209ec commit bff325e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
21 changes: 21 additions & 0 deletions playbooks/roles/firewalld-start/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
- name: Restart firewalld
service:
name: firewalld
state: restarted
become: yes

- name: Start firewalld
service:
name: firewalld
state: started
enabled: true
become: yes

- name: Disable firewalld
service:
name: firewalld
state: stopped
enabled: false
become: yes

7 changes: 7 additions & 0 deletions playbooks/roles/firewalld-start/tasks/RedHat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- name: Start firewalld
service:
name: firewalld
state: started
enabled: true
become: yes
2 changes: 2 additions & 0 deletions playbooks/roles/firewalld-start/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
- include_tasks: "{{ansible_facts.os_family}}.yml"

0 comments on commit bff325e

Please sign in to comment.