add vault
This commit is contained in:
parent
9cdb8b12b7
commit
c89c678ea0
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
ansible_user: ladmin
|
ansible_user: ladmin
|
||||||
ansible_become_user: root
|
ansible_become_user: root
|
||||||
|
ansible_become_pass: "{{ lab_become_password }}"
|
||||||
ansible_os_family: Arch
|
ansible_os_family: Arch
|
||||||
|
|
||||||
# sshd
|
# sshd
|
||||||
|
2
ansible/roles/firewall/defaults/main.yml
Normal file
2
ansible/roles/firewall/defaults/main.yml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
firewall_package: ufw
|
10
ansible/roles/firewall/tasks/main.yml
Normal file
10
ansible/roles/firewall/tasks/main.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
- name: install ufw arch
|
||||||
|
become: true
|
||||||
|
community.general.pacman:
|
||||||
|
name: "{{ firewall_package }}"
|
||||||
|
state: latest
|
||||||
|
update_cache: true
|
||||||
|
reason: explicit
|
||||||
|
when:
|
||||||
|
- ansible_os_family == 'Arch'
|
Loading…
Reference in New Issue
Block a user