mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-15 09:23:06 -06:00
first pass at incorporating mesh setup/config
This commit is contained in:
20
roles/bitbucket_mesh_config/tasks/orphan_lease_lock.yml
Normal file
20
roles/bitbucket_mesh_config/tasks/orphan_lease_lock.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
- 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
|
||||
Reference in New Issue
Block a user