summaryrefslogtreecommitdiffstats
path: root/ansible/test
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/test')
-rw-r--r--ansible/test/roles/cleanup-application-override/tasks/main.yml5
-rw-r--r--ansible/test/roles/prepare-application-override/tasks/main.yml13
2 files changed, 18 insertions, 0 deletions
diff --git a/ansible/test/roles/cleanup-application-override/tasks/main.yml b/ansible/test/roles/cleanup-application-override/tasks/main.yml
new file mode 100644
index 00000000..084d7ae0
--- /dev/null
+++ b/ansible/test/roles/cleanup-application-override/tasks/main.yml
@@ -0,0 +1,5 @@
+- name: "Clean application-override mocked certificate directory"
+ file:
+ path: "{{ playbook_dir }}/certs"
+ state: absent
+ delegate_to: localhost
diff --git a/ansible/test/roles/prepare-application-override/tasks/main.yml b/ansible/test/roles/prepare-application-override/tasks/main.yml
new file mode 100644
index 00000000..e601c90a
--- /dev/null
+++ b/ansible/test/roles/prepare-application-override/tasks/main.yml
@@ -0,0 +1,13 @@
+- name: "Create certificate directory"
+ file:
+ path: "{{ playbook_dir }}/certs"
+ state: directory
+ delegate_to: localhost
+
+- name: "Create dummy cert file"
+ copy:
+ content: |
+ this is dummy server certificate value
+ dest: certs/rootCA.crt
+ delegate_to: localhost
+