diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2021-04-09 12:20:18 +0200 |
---|---|---|
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2021-04-09 12:20:18 +0200 |
commit | 3a1efb1884db1d3911e71d0197ef41fcd823381d (patch) | |
tree | 1c0fd9f91f2298f03bef317598f6c929453bafb1 | |
parent | fc5a01f9ce5f36e504829ccd71a51b02cb711a9a (diff) |
[MOLECULE] Add cleanup task for 'certificates' role
Change-Id: Ifb9c9627d840158d8a4be3a1d1a1ea75dc4038c3
Issue-ID: OOM-2722
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
-rw-r--r-- | ansible/roles/certificates/molecule/default/cleanup.yml | 6 | ||||
-rw-r--r-- | ansible/roles/certificates/molecule/ubuntu/molecule.yml | 1 | ||||
-rw-r--r-- | ansible/test/roles/cleanup-certificates/tasks/main.yml | 8 |
3 files changed, 15 insertions, 0 deletions
diff --git a/ansible/roles/certificates/molecule/default/cleanup.yml b/ansible/roles/certificates/molecule/default/cleanup.yml new file mode 100644 index 00000000..f1d60165 --- /dev/null +++ b/ansible/roles/certificates/molecule/default/cleanup.yml @@ -0,0 +1,6 @@ +--- +- name: Cleanup infra + hosts: all + ignore_unreachable: true + roles: + - cleanup-certificates diff --git a/ansible/roles/certificates/molecule/ubuntu/molecule.yml b/ansible/roles/certificates/molecule/ubuntu/molecule.yml index c2854e3b..69971175 100644 --- a/ansible/roles/certificates/molecule/ubuntu/molecule.yml +++ b/ansible/roles/certificates/molecule/ubuntu/molecule.yml @@ -31,6 +31,7 @@ provisioner: ANSIBLE_LIBRARY: ../../../../library playbooks: converge: ../default/converge.yml + cleanup: ../default/cleanup.yml inventory: links: group_vars: ../../../../group_vars/ diff --git a/ansible/test/roles/cleanup-certificates/tasks/main.yml b/ansible/test/roles/cleanup-certificates/tasks/main.yml new file mode 100644 index 00000000..69a904f1 --- /dev/null +++ b/ansible/test/roles/cleanup-certificates/tasks/main.yml @@ -0,0 +1,8 @@ +--- +- name: Clean certificates role ephemeral directories + file: + path: "{{ item }}" + state: absent + delegate_to: localhost + loop: + - certs |