diff options
Diffstat (limited to 'ansible/playbooks')
-rw-r--r-- | ansible/playbooks/common.yml | 7 | ||||
-rw-r--r-- | ansible/playbooks/test.yml | 13 |
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' +... |