mirror of
https://github.com/Crocmagnon/ansible.git
synced 2024-12-04 13:03:38 +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
|
mode: preserve
|
||||||
with_fileglob:
|
with_fileglob:
|
||||||
- files/bin/*
|
- files/bin/*
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item | basename }}"
|
||||||
- name: Template bin files
|
- name: Template bin files
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
|
@ -17,6 +19,8 @@
|
||||||
mode: preserve
|
mode: preserve
|
||||||
with_fileglob:
|
with_fileglob:
|
||||||
- templates/bin/*.j2
|
- templates/bin/*.j2
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item | basename }}"
|
||||||
vars:
|
vars:
|
||||||
ghost_db_password: !vault |
|
ghost_db_password: !vault |
|
||||||
$ANSIBLE_VAULT;1.1;AES256
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
with_fileglob:
|
with_fileglob:
|
||||||
- files/{{ docker_app_name }}/*
|
- files/{{ docker_app_name }}/*
|
||||||
- files/{{ docker_app_name }}/.*
|
- files/{{ docker_app_name }}/.*
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item | basename }}"
|
||||||
notify:
|
notify:
|
||||||
- Restart service
|
- Restart service
|
||||||
- name: Write templates for {{ docker_app_name }}
|
- name: Write templates for {{ docker_app_name }}
|
||||||
|
@ -22,9 +24,11 @@
|
||||||
with_fileglob:
|
with_fileglob:
|
||||||
- templates/{{ docker_app_name }}/*.j2
|
- templates/{{ docker_app_name }}/*.j2
|
||||||
- templates/{{ docker_app_name }}/.*.j2
|
- templates/{{ docker_app_name }}/.*.j2
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item | basename }}"
|
||||||
notify:
|
notify:
|
||||||
- Restart service
|
- Restart service
|
||||||
- name: Flush handlers for {{ docker_app_name }}
|
- name: Flush handlers
|
||||||
ansible.builtin.meta: flush_handlers
|
ansible.builtin.meta: flush_handlers
|
||||||
- name: Ensure service is started {{ docker_app_name }}
|
- name: Ensure service is started {{ docker_app_name }}
|
||||||
community.docker.docker_compose_v2:
|
community.docker.docker_compose_v2:
|
||||||
|
|
Loading…
Reference in a new issue