Skip to content

Commit

Permalink
BetteModuleTest
Browse files Browse the repository at this point in the history
  • Loading branch information
loictlpk committed Jul 26, 2023
1 parent e3d8046 commit 5b4bccb
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 24 deletions.
11 changes: 11 additions & 0 deletions ansible/firewallNoPing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#FIREWALL RULE : No Ping
- name: pfsensible_firewallRule
pfsensible.core.pfsense_rule:
name: 'NoPing'
action: block
interface: lan
ipprotocol: inet
protocol: icmp
source: any
destination: any
after: top
5 changes: 5 additions & 0 deletions ansible/hostname.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#CHANGE HOSTNAME
- name: pfsensible_hostname
pfsensible.core.pfsense_setup:
hostname: PF_Loic
domain: mirahi.local
27 changes: 3 additions & 24 deletions ansible/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,6 @@
hosts: pfswitch

tasks:
#REQUIRED PKG FOR MANAGEMENT
- name: install sudo pkg on pfsense
package:
name:
- sudo
state: latest

#CHANGE HOSTNAME
- name: pfsensible_hostname
pfsensible.core.pfsense_setup:
hostname: PF_Loic
domain: mirahi.local

#FIREWALL RULE : No Ping
- name: pfsensible_firewallRule
pfsensible.core.pfsense_rule:
name: 'NoPing'
action: block
interface: lan
ipprotocol: inet
protocol: icmp
source: any
destination: any
after: top
- include: sudoInstallPkg.yml
- include: hostname.yml
- include: firewallNoPing.yml
6 changes: 6 additions & 0 deletions ansible/sudoInstallPkg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#REQUIRED PKG FOR MANAGEMENT
- name: install sudo pkg on pfsense
package:
name:
- sudo
state: latest

0 comments on commit 5b4bccb

Please sign in to comment.