From 96a4bafa0f159f14bcbe6743b1a98ea76e7bef21 Mon Sep 17 00:00:00 2001 From: Bartek Grzybowski Date: Wed, 17 Apr 2019 13:32:37 +0200 Subject: Sanitize Molecule code for 'nfs' role 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 --- ansible/roles/nfs/molecule/default/cleanup.yml | 3 +-- ansible/roles/nfs/molecule/default/molecule.yml | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'ansible/roles/nfs') diff --git a/ansible/roles/nfs/molecule/default/cleanup.yml b/ansible/roles/nfs/molecule/default/cleanup.yml index a085bd5a..af47ed82 100644 --- a/ansible/roles/nfs/molecule/default/cleanup.yml +++ b/ansible/roles/nfs/molecule/default/cleanup.yml @@ -1,6 +1,5 @@ --- - name: Cleanup - hosts: all - ignore_unreachable: true + hosts: all:!nfs-server roles: - cleanup-nfs diff --git a/ansible/roles/nfs/molecule/default/molecule.yml b/ansible/roles/nfs/molecule/default/molecule.yml index f6610ece..7bacf3c4 100644 --- a/ansible/roles/nfs/molecule/default/molecule.yml +++ b/ansible/roles/nfs/molecule/default/molecule.yml @@ -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: -- cgit 1.2.3-korg