don't use docker_compose module
Infrastructure / Check and run Ansbile playbooks (pull_request) Successful in 4m54s
Details
Infrastructure / Check and run Ansbile playbooks (pull_request) Successful in 4m54s
Details
This commit is contained in:
parent
ad5b65e694
commit
562f0a2983
|
@ -85,7 +85,7 @@
|
|||
- name: Resize root disk
|
||||
community.general.proxmox_disk:
|
||||
disk: scsi0
|
||||
size: 16
|
||||
size: 16G
|
||||
state: resized
|
||||
- name: Create data disk
|
||||
community.general.proxmox_disk:
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
- containerd.io
|
||||
- docker-buildx-plugin
|
||||
- docker-compose-plugin
|
||||
- python3-docker
|
||||
become: true
|
||||
- name: Add user to docker group
|
||||
ansible.builtin.user:
|
||||
|
|
|
@ -16,14 +16,13 @@
|
|||
src: ./{{ project }}
|
||||
dest: "{{ user.home }}"
|
||||
mode: "0744"
|
||||
- name: Docker compose
|
||||
module_defaults:
|
||||
community.docker.docker_compose:
|
||||
project_src: "{{ user.home }}/{{ project }}"
|
||||
block:
|
||||
- name: Down
|
||||
community.docker.docker_compose:
|
||||
state: absent
|
||||
- name: Up
|
||||
community.docker.docker_compose:
|
||||
state: present
|
||||
notify: re-deploy
|
||||
handlers:
|
||||
- name: Restart Docker compose
|
||||
ansible.builtin.shell: |
|
||||
docker compose down
|
||||
docker compose up -d
|
||||
exit 0
|
||||
args:
|
||||
chdir: "{{ user.home }}/{{ project }}"
|
||||
listen: re-deploy
|
||||
|
|
Loading…
Reference in New Issue