Files
dc-deployments-automation/roles/bitbucket_mesh_config/tasks/orphan_lease_lock.yml

21 lines
625 B
YAML

---
- name: Try to create lease_lock directory in EFS for this test_orphan_vol
ansible.builtin.file:
path: '{{ atl_shared_mountpoint }}/.{{ test_orphan_vol }}'
state: directory
mode: '0755'
register: orphan_vol_lease_lock
ignore_errors: yes
when: orphan_vol is not defined
- name: Set orphan_vol fact on successful lock test
ansible.builtin.set_fact:
orphan_vol: '{{ test_orphan_vol }}'
changed_when: true
notify: Remove orphan_vol lease lock
when:
- orphan_vol is not defined
- orphan_vol_lease_lock is defined
- orphan_vol_lease_lock.changed
tags: molecule-idempotence-notest