improve loop verbosity
Some checks failed
/ run ansible (push) Has been cancelled

This commit is contained in:
Gabriel Augendre 2024-10-23 22:26:26 +02:00
parent ac5485bc62
commit 786432d6bd
2 changed files with 9 additions and 1 deletions

View file

@ -10,6 +10,8 @@
mode: preserve
with_fileglob:
- files/bin/*
loop_control:
label: "{{ item | basename }}"
- name: Template bin files
ansible.builtin.template:
src: "{{ item }}"
@ -17,6 +19,8 @@
mode: preserve
with_fileglob:
- templates/bin/*.j2
loop_control:
label: "{{ item | basename }}"
vars:
ghost_db_password: !vault |
$ANSIBLE_VAULT;1.1;AES256

View file

@ -12,6 +12,8 @@
with_fileglob:
- files/{{ docker_app_name }}/*
- files/{{ docker_app_name }}/.*
loop_control:
label: "{{ item | basename }}"
notify:
- Restart service
- name: Write templates for {{ docker_app_name }}
@ -22,9 +24,11 @@
with_fileglob:
- templates/{{ docker_app_name }}/*.j2
- templates/{{ docker_app_name }}/.*.j2
loop_control:
label: "{{ item | basename }}"
notify:
- Restart service
- name: Flush handlers for {{ docker_app_name }}
- name: Flush handlers
ansible.builtin.meta: flush_handlers
- name: Ensure service is started {{ docker_app_name }}
community.docker.docker_compose_v2: