aboutsummaryrefslogtreecommitdiff
path: root/ansible/playbooks/test.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/playbooks/test.yml')
-rw-r--r--ansible/playbooks/test.yml13
1 files changed, 13 insertions, 0 deletions
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'
+...