mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
20 lines
624 B
YAML
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 |