Sanitize Molecule code for 'nfs' role 62/85562/1
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Wed, 17 Apr 2019 11:32:37 +0000 (13:32 +0200)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Wed, 17 Apr 2019 11:32:37 +0000 (13:32 +0200)
Cleaning up of nfs mounts should only happen
on clients, not on server itself.

Explicit declaration of 'cleanup' stage playbook
not needed as it's in the default location.

Change-Id: I54e00220048f01160c15fc9631ae62586596114c
Issue-ID: OOM-1809
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
ansible/roles/nfs/molecule/default/cleanup.yml
ansible/roles/nfs/molecule/default/molecule.yml

index a085bd5..af47ed8 100644 (file)
@@ -1,6 +1,5 @@
 ---
 - name: Cleanup
-  hosts: all
-  ignore_unreachable: true
+  hosts: all:!nfs-server
   roles:
     - cleanup-nfs
index f6610ec..7bacf3c 100644 (file)
@@ -35,8 +35,6 @@ platforms:
       - /sys/fs/cgroup:/sys/fs/cgroup:ro
 provisioner:
   name: ansible
-  playbooks:
-    cleanup: cleanup.yml
   env:
     ANSIBLE_ROLES_PATH: "../../../../test/roles"
   inventory: