add docker deploy stack task functional!
This commit is contained in:
parent
1994a93a0d
commit
b53559959d
19
playbook.yml
19
playbook.yml
@ -112,6 +112,11 @@
|
||||
owner: admin
|
||||
group: admin
|
||||
|
||||
- name: Pip install Docker-compose (au cas ou)
|
||||
become: True
|
||||
shell:
|
||||
cmd: "python3 -m pip install docker-compose"
|
||||
|
||||
################# CERTBOT #################
|
||||
|
||||
- name: Install Certbot
|
||||
@ -161,15 +166,13 @@
|
||||
repo: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
with_items:
|
||||
- { src: 'https://git.gregandev.fr/gregandev/jellyfin.git', dest: '/workspace/jellyfin/' }
|
||||
- { src: 'https://git.gregandev.fr/gregandev/jellyfin.git', dest: '/workspace/jellyfin' }
|
||||
- { src: 'https://git.gregandev.fr/gregandev/syncthing.git', dest: '/workspace/syncthing' }
|
||||
|
||||
# ERROR PULLING IMAGES ...
|
||||
- name: Run container
|
||||
become: True
|
||||
shell:
|
||||
cmd: "docker-compose -f docker-compose.yml up -d"
|
||||
chdir: "{{ item }}"
|
||||
- name: Start stack with Docker-compose up!
|
||||
community.docker.docker_compose:
|
||||
project_src: "{{ item }}"
|
||||
with_items:
|
||||
- /workspace/jellyfin
|
||||
- /workspace/syncthing
|
||||
- /workspace/syncthing
|
||||
register: output
|
||||
|
Loading…
x
Reference in New Issue
Block a user