summaryrefslogtreecommitdiffstats
path: root/ansible
diff options
context:
space:
mode:
authorSamuli Silvius <s.silvius@partner.samsung.com>2019-05-30 15:24:02 +0000
committerGerrit Code Review <gerrit@onap.org>2019-05-30 15:24:02 +0000
commit293ad25456bb37dbd6827d26f87e495a2b7f1b85 (patch)
tree546185db3a747db42da04a2498a15564d75c75ce /ansible
parentbddfaebbfab17f78fc5bfa2e7302584373d44523 (diff)
parentf2b9a04b5bc1f8c22cba4ba587f0526306d92ac8 (diff)
Merge "Make molecule tests for certificates independent from docker role"
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/certificates/molecule/default/playbook.yml9
-rw-r--r--ansible/roles/certificates/molecule/default/prepare.yml5
2 files changed, 6 insertions, 8 deletions
diff --git a/ansible/roles/certificates/molecule/default/playbook.yml b/ansible/roles/certificates/molecule/default/playbook.yml
index 5dcd42ee..13583ebb 100644
--- a/ansible/roles/certificates/molecule/default/playbook.yml
+++ b/ansible/roles/certificates/molecule/default/playbook.yml
@@ -1,14 +1,17 @@
---
- name: Infra
hosts: infrastructure
+ handlers:
+ - name: Restart Docker
+ debug: msg="Docker restart called"
roles:
- certificates
- - docker # docker role needed here just because of docker restart handler
- name: Kube
hosts: kubernetes
- roles:
- - docker # docker role needed here just because of docker restart handler
+ handlers:
+ - name: Restart Docker
+ debug: msg="Docker restart called"
tasks:
- include_role:
name: certificates
diff --git a/ansible/roles/certificates/molecule/default/prepare.yml b/ansible/roles/certificates/molecule/default/prepare.yml
deleted file mode 100644
index 8df759c9..00000000
--- a/ansible/roles/certificates/molecule/default/prepare.yml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-- name: Prepare infra
- hosts: all
- roles:
- - prepare-docker