Compare commits
2 Commits
9cdb8b12b7
...
0a49861be6
Author | SHA1 | Date | |
---|---|---|---|
0a49861be6 | |||
c89c678ea0 |
3
.gitignore
vendored
3
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
ansible/vault_password
|
ansible/vault_password
|
||||||
|
ansible/inventory/group_vars/vault.yml
|
@ -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
|
||||||
|
@ -6,4 +6,5 @@
|
|||||||
|
|
||||||
roles:
|
roles:
|
||||||
- python
|
- python
|
||||||
- sshd
|
- sshd
|
||||||
|
- firewall
|
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