This commit is contained in:
SebClem 2023-06-29 14:07:01 +02:00
parent 28d9caf8f0
commit ee0532f4fb
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50
17 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
# tasks file for Ansible-Docker-Compose-Role
- name: Check project limit
ansible.builtin.set_fact:
list_project_limit: "{{ docker_compose_project_limit | split(',') }}"
docker_compose_list_project_limit: "{{ docker_compose_project_limit | split(',') }}"
when: docker_compose_project_limit
- name: Get project_list
@ -10,14 +10,14 @@
paths:
- "{{ docker_compose_local_project_dir }}"
file_type: directory
register: find_results
register: docker_compose_find_results
delegate_to: localhost
- name: Arrange et filter folder list
ansible.builtin.set_fact:
docker_compose_project_list: "{{ docker_compose_project_list + [{'path': item.path, 'name': item.path | basename}] }}"
when: list_project_limit is undefined or item.path | basename in list_project_limit
loop: "{{ find_results.files }}"
when: docker_compose_list_project_limit is undefined or item.path | basename in docker_compose_list_project_limit
loop: "{{ docker_compose_find_results.files }}"
- name: Copy projects
ansible.builtin.copy: