Skip to content

Commit

Permalink
move firewall install tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
willtome committed Oct 2, 2023
1 parent b2e9999 commit d428dc7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
- name: Include system variables
ansible.builtin.include_vars: "{{ ansible_system }}.yml"

- name: Install firewall dependencies
ansible.builtin.dnf:
name:
- firewalld
- python3-firewall
state: present
check_mode: false

- name: Start firewalld
ansible.builtin.service:
name: firewalld
state: started
check_mode: false

- name: Permit traffic in default zone for http service
ansible.posix.firewalld:
service: http
Expand Down
11 changes: 0 additions & 11 deletions linux/patching.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,6 @@
delegate_to: "{{ report_server }}"
run_once: true # noqa: run-once[task]
block:
- name: Install firewall dependencies
ansible.builtin.dnf:
name:
- firewalld
- python3-firewall
state: present

- name: Start firewalld
ansible.builtin.service:
name: firewalld
state: started

- name: Build report server
ansible.builtin.include_role:
Expand Down

0 comments on commit d428dc7

Please sign in to comment.