1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
Ansible_Project/roles/ansistrano.deploy/tasks/setup.yml
2022-05-02 17:37:08 +02:00

32 lines
941 B
YAML

---
# Setup folders
- name: ANSISTRANO | Ensure deployment base path exists
file:
state: directory
path: "{{ ansistrano_deploy_to }}"
- name: ANSISTRANO | Ensure releases folder exists
file:
state: directory
path: "{{ ansistrano_releases_path }}"
- name: ANSISTRANO | Ensure shared elements folder exists
file:
state: directory
path: "{{ ansistrano_shared_path }}"
# Ensure shared path exists
- name: ANSISTRANO | Ensure shared paths exists
file:
state: directory
path: "{{ ansistrano_shared_path }}/{{ item }}"
with_items: "{{ ansistrano_shared_paths }}"
when: ansistrano_ensure_shared_paths_exist|bool
# Ensure basedir shared files exists
- name: ANSISTRANO | Ensure basedir shared files exists
file:
state: directory
path: "{{ ansistrano_shared_path }}/{{ item | dirname }}"
with_items: "{{ ansistrano_shared_files }}"
when: ansistrano_ensure_basedirs_shared_files_exist|bool