This commit is contained in:
@@ -19,29 +19,29 @@
|
||||
state: directory
|
||||
mode: '0755'
|
||||
loop:
|
||||
- /opt/matrix
|
||||
- /opt/beeserver/matrix
|
||||
|
||||
- name: Compose down
|
||||
changed_when: true
|
||||
failed_when: false
|
||||
ansible.builtin.command:
|
||||
cmd: podman-compose down
|
||||
chdir: /opt/matrix
|
||||
chdir: /opt/beeserver/matrix
|
||||
|
||||
- name: Copy resolv.conf
|
||||
ansible.builtin.template:
|
||||
src: resolv.conf.j2
|
||||
dest: /opt/matrix/resolv.conf
|
||||
dest: /opt/beeserver/matrix/resolv.conf
|
||||
mode: '0644'
|
||||
|
||||
- name: Copy compose
|
||||
ansible.builtin.template:
|
||||
src: docker-compose.yml.j2
|
||||
dest: /opt/matrix/docker-compose.yml
|
||||
dest: /opt/beeserver/matrix/docker-compose.yml
|
||||
mode: '0644'
|
||||
|
||||
- name: Compose up
|
||||
changed_when: true
|
||||
ansible.builtin.command:
|
||||
cmd: podman-compose up -d
|
||||
chdir: /opt/matrix
|
||||
chdir: /opt/beeserver/matrix
|
||||
|
||||
Reference in New Issue
Block a user