moved docker-compose to a template file to control RC version easier

This commit is contained in:
BSounder 2022-07-07 19:14:35 -07:00
parent cf69880af5
commit c0dd7a9eea
2 changed files with 6 additions and 6 deletions

View File

@ -52,17 +52,17 @@
dest: /home/{{ main_user }}/rocketchat/docker
remote_src: yes
- name: copy docker compose to server
become_user: "{{ main_user }}"
copy:
src: files/docker-compose.yml
dest: /home/{{ main_user }}/rocketchat/
- name: copy docker compose to server (from template)
template:
src: templates/docker-compose.yml.j2
dest: /home/{{ main_user }}/rocketchat/docker-compose.yml
- name: bring down rocketchat docker-compose
become_user: "{{ main_user }}"
docker_compose:
project_src: /home/{{ main_user }}/rocketchat/
state: absent
remove_orphans: true
register: __remove_rocketchat
tags:
- bring-down

View File

@ -2,7 +2,7 @@ version: '3.7'
services:
rocketchat:
image: rocket.chat:4.0.3
image: rocket.chat:{{ rc_version }}
command: >
bash -c
"for (( ; ; )); do