aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoransible_admin <capsul@cyberia.club>2020-08-20 21:16:51 +0000
committeransible_admin <capsul@cyberia.club>2020-08-20 21:16:51 +0000
commit10727a8c255604487d0e2a3ff5d2988897f11a4b (patch)
tree7c15da1e7c6cc58cfc67e2e31a90de1a6e845a65
parent05a8364cf78db232056c3f8aa5624288d4b586dc (diff)
downloadops-handbook-10727a8c255604487d0e2a3ff5d2988897f11a4b.tar.gz
ops-handbook-10727a8c255604487d0e2a3ff5d2988897f11a4b.tar.bz2
Just adding a testing script, to confirm proper server cofiguartion
-rw-r--r--ansible/roles/test/tasks/main.yml16
-rw-r--r--ansible/test.yml13
2 files changed, 29 insertions, 0 deletions
diff --git a/ansible/roles/test/tasks/main.yml b/ansible/roles/test/tasks/main.yml
new file mode 100644
index 0000000..318af77
--- /dev/null
+++ b/ansible/roles/test/tasks/main.yml
@@ -0,0 +1,16 @@
+- name: Create a Test File
+ file:
+ path: /tmp/test_ansible.txt
+ state: touch
+
+- name: Test Perms
+ file:
+ path: /tmp/test_ansible.txt
+ owner: root
+ group: cyberian
+ mode: '0664'
+
+- name: Remove Test File
+ file:
+ path: /tmp/test_ansible.txt
+ state: absent
diff --git a/ansible/test.yml b/ansible/test.yml
new file mode 100644
index 0000000..f46397b
--- /dev/null
+++ b/ansible/test.yml
@@ -0,0 +1,13 @@
+- name: Test ansible setup
+ hosts: all
+ become: true
+ remote_user: cyberian
+ roles:
+ - test
+
+# - name: Create a test file
+# file:
+# path: /tmp/test_ansible.txt
+# owner: root
+# group: cyberian
+# mode: '0664'