moved docker-compose to a template file to control RC version easier
This commit is contained in:
parent
cf69880af5
commit
c0dd7a9eea
|
@ -52,17 +52,17 @@
|
||||||
dest: /home/{{ main_user }}/rocketchat/docker
|
dest: /home/{{ main_user }}/rocketchat/docker
|
||||||
remote_src: yes
|
remote_src: yes
|
||||||
|
|
||||||
- name: copy docker compose to server
|
- name: copy docker compose to server (from template)
|
||||||
become_user: "{{ main_user }}"
|
template:
|
||||||
copy:
|
src: templates/docker-compose.yml.j2
|
||||||
src: files/docker-compose.yml
|
dest: /home/{{ main_user }}/rocketchat/docker-compose.yml
|
||||||
dest: /home/{{ main_user }}/rocketchat/
|
|
||||||
|
|
||||||
- name: bring down rocketchat docker-compose
|
- name: bring down rocketchat docker-compose
|
||||||
become_user: "{{ main_user }}"
|
become_user: "{{ main_user }}"
|
||||||
docker_compose:
|
docker_compose:
|
||||||
project_src: /home/{{ main_user }}/rocketchat/
|
project_src: /home/{{ main_user }}/rocketchat/
|
||||||
state: absent
|
state: absent
|
||||||
|
remove_orphans: true
|
||||||
register: __remove_rocketchat
|
register: __remove_rocketchat
|
||||||
tags:
|
tags:
|
||||||
- bring-down
|
- bring-down
|
||||||
|
|
|
@ -2,7 +2,7 @@ version: '3.7'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
rocketchat:
|
rocketchat:
|
||||||
image: rocket.chat:4.0.3
|
image: rocket.chat:{{ rc_version }}
|
||||||
command: >
|
command: >
|
||||||
bash -c
|
bash -c
|
||||||
"for (( ; ; )); do
|
"for (( ; ; )); do
|
Loading…
Reference in New Issue