Cloud VM #7
|
@ -85,7 +85,7 @@
|
||||||
- name: Resize root disk
|
- name: Resize root disk
|
||||||
community.general.proxmox_disk:
|
community.general.proxmox_disk:
|
||||||
disk: scsi0
|
disk: scsi0
|
||||||
size: 16
|
size: 16G
|
||||||
state: resized
|
state: resized
|
||||||
- name: Create data disk
|
- name: Create data disk
|
||||||
community.general.proxmox_disk:
|
community.general.proxmox_disk:
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
- containerd.io
|
- containerd.io
|
||||||
- docker-buildx-plugin
|
- docker-buildx-plugin
|
||||||
- docker-compose-plugin
|
- docker-compose-plugin
|
||||||
- python3-docker
|
|
||||||
become: true
|
become: true
|
||||||
- name: Add user to docker group
|
- name: Add user to docker group
|
||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
|
|
|
@ -16,14 +16,13 @@
|
||||||
src: ./{{ project }}
|
src: ./{{ project }}
|
||||||
dest: "{{ user.home }}"
|
dest: "{{ user.home }}"
|
||||||
mode: "0744"
|
mode: "0744"
|
||||||
- name: Docker compose
|
notify: re-deploy
|
||||||
module_defaults:
|
handlers:
|
||||||
community.docker.docker_compose:
|
- name: Restart Docker compose
|
||||||
project_src: "{{ user.home }}/{{ project }}"
|
ansible.builtin.shell: |
|
||||||
block:
|
docker compose down
|
||||||
- name: Down
|
docker compose up -d
|
||||||
community.docker.docker_compose:
|
exit 0
|
||||||
state: absent
|
args:
|
||||||
- name: Up
|
chdir: "{{ user.home }}/{{ project }}"
|
||||||
community.docker.docker_compose:
|
listen: re-deploy
|
||||||
state: present
|
|
||||||
|
|
Loading…
Reference in New Issue