mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-03 23:14:02 -07:00
parent
4727fb77b3
commit
eff25c8a6e
28 changed files with 187 additions and 157 deletions
|
@ -123,11 +123,12 @@
|
|||
register: releases_path
|
||||
- stat: path={{ deploy_helper.shared_path }}
|
||||
register: shared_path
|
||||
when: deploy_helper.shared_path is truthy
|
||||
- name: Assert State=present with shared_path set to False
|
||||
assert:
|
||||
that:
|
||||
- "releases_path.stat.exists"
|
||||
- "not shared_path.stat.exists"
|
||||
- "deploy_helper.shared_path is falsy or not shared_path.stat.exists"
|
||||
|
||||
# Setup older releases for tests
|
||||
- file: path={{ deploy_helper.releases_path }}/{{ item }} state=directory
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue