aboutsummaryrefslogtreecommitdiff
path: root/ansible/playbooks
diff options
context:
space:
mode:
authorclyhtsuriva <aimeric@adjutor.xyz>2025-02-01 02:12:10 +0100
committerclyhtsuriva <aimeric@adjutor.xyz>2025-02-01 02:12:10 +0100
commitf246600cbb66834c1289bf52cf7bd95cc6428b02 (patch)
tree2672aa9539cad83ae3c8861ebc0571c398a397f6 /ansible/playbooks
parent97f55e590c58a3f252497df23bcec97c9352ff06 (diff)
Working debian packer template w/ ansible to set up fw rules after reboot
Diffstat (limited to 'ansible/playbooks')
-rw-r--r--ansible/playbooks/common.yml7
-rw-r--r--ansible/playbooks/test.yml13
2 files changed, 20 insertions, 0 deletions
diff --git a/ansible/playbooks/common.yml b/ansible/playbooks/common.yml
new file mode 100644
index 0000000..a9a64d4
--- /dev/null
+++ b/ansible/playbooks/common.yml
@@ -0,0 +1,7 @@
+---
+- name: Apply common configurations to all VMs
+ hosts: all
+ become: true
+ roles:
+ - role: common
+...
diff --git a/ansible/playbooks/test.yml b/ansible/playbooks/test.yml
new file mode 100644
index 0000000..638572f
--- /dev/null
+++ b/ansible/playbooks/test.yml
@@ -0,0 +1,13 @@
+---
+- name: Create a file in /root/ called toto with content tata
+ hosts: all
+ become: true
+ tasks:
+ - name: Ensure /root/toto exists with content "tata"
+ ansible.builtin.copy:
+ dest: /root/toto
+ content: "tata"
+ owner: root
+ group: root
+ mode: '0644'
+...