Fix lint
This commit is contained in:
parent
28d9caf8f0
commit
ee0532f4fb
@ -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:
|
Loading…
Reference in New Issue
Block a user