Files
dc-deployments-automation/roles/bitbucket_mesh_config/tasks/orphan_lease_lock.yml
2024-03-25 12:55:28 -05:00

20 lines
624 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