init
This commit is contained in:
16
ansible/roles/common/tasks/main.yaml
Normal file
16
ansible/roles/common/tasks/main.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
- name: Set the hostname per inventory
|
||||
hostname:
|
||||
name: "{{ inventory_hostname }}"
|
||||
use: systemd
|
||||
|
||||
- name: Install firewalld
|
||||
package:
|
||||
name: firewalld
|
||||
state: latest
|
||||
|
||||
- name: Start and enable firewalld
|
||||
service:
|
||||
name: firewalld
|
||||
state: started
|
||||
enabled: true
|
||||
|
||||
Reference in New Issue
Block a user