mirror of
https://github.com/Crocmagnon/ansible.git
synced 2024-12-03 12:35:59 +01:00
This commit is contained in:
parent
ac5485bc62
commit
786432d6bd
2 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue