diff options
author | clyhtsuriva <aimeric@adjutor.xyz> | 2025-02-01 02:08:17 +0100 |
---|---|---|
committer | clyhtsuriva <aimeric@adjutor.xyz> | 2025-02-01 02:08:17 +0100 |
commit | 197249a17f054671434734e2899bd6c8f4f0d37c (patch) | |
tree | d6ab13214a9a85d6cd9864422c156cbd2f8928cf /ansible | |
parent | 76631f1123b785f3cff38720b41055828ddef123 (diff) |
Add pages for ansible and proxmox
ansible: testing playbooks + managing firewall rules with ufw
proxmox: disk performance w/ io_thread and scsi single + useful helper scripts
found online
Diffstat (limited to 'ansible')
-rw-r--r-- | ansible/managing-ufw-rules.md | 13 | ||||
-rw-r--r-- | ansible/testing-playbooks.md | 9 |
2 files changed, 22 insertions, 0 deletions
diff --git a/ansible/managing-ufw-rules.md b/ansible/managing-ufw-rules.md new file mode 100644 index 0000000..c48b56b --- /dev/null +++ b/ansible/managing-ufw-rules.md @@ -0,0 +1,13 @@ +# UFW rules management using Ansible + +Since ufw is part of the community.general collection, ensure it's installed on the Ansible control machine: + +```sh +ansible-galaxy collection install community.general +``` + +It is by default installed and enabled with ALLOW rules for SSH, HTTP and HTTPS on all images generated for this homelab. + +The tasks are defined in `ansible/roles/common/tasks/ufw.yml`. + +It is called by `ansible/playbooks/common.yml`. diff --git a/ansible/testing-playbooks.md b/ansible/testing-playbooks.md new file mode 100644 index 0000000..b07f5d5 --- /dev/null +++ b/ansible/testing-playbooks.md @@ -0,0 +1,9 @@ +# Testing playbooks + +Using `-C` to test whatever playbooks on chosen hosts. + +e.g. : + +```sh +ansible-playbook -C playbooks/common.yml -i hosts +``` |