Fix lint
This commit is contained in:
parent
28d9caf8f0
commit
ee0532f4fb
@ -2,7 +2,7 @@
|
|||||||
# tasks file for Ansible-Docker-Compose-Role
|
# tasks file for Ansible-Docker-Compose-Role
|
||||||
- name: Check project limit
|
- name: Check project limit
|
||||||
ansible.builtin.set_fact:
|
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
|
when: docker_compose_project_limit
|
||||||
|
|
||||||
- name: Get project_list
|
- name: Get project_list
|
||||||
@ -10,14 +10,14 @@
|
|||||||
paths:
|
paths:
|
||||||
- "{{ docker_compose_local_project_dir }}"
|
- "{{ docker_compose_local_project_dir }}"
|
||||||
file_type: directory
|
file_type: directory
|
||||||
register: find_results
|
register: docker_compose_find_results
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|
||||||
- name: Arrange et filter folder list
|
- name: Arrange et filter folder list
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
docker_compose_project_list: "{{ docker_compose_project_list + [{'path': item.path, 'name': item.path | basename}] }}"
|
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
|
when: docker_compose_list_project_limit is undefined or item.path | basename in docker_compose_list_project_limit
|
||||||
loop: "{{ find_results.files }}"
|
loop: "{{ docker_compose_find_results.files }}"
|
||||||
|
|
||||||
- name: Copy projects
|
- name: Copy projects
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
Loading…
Reference in New Issue
Block a user