32 lines
849 B
YAML
32 lines
849 B
YAML
---
|
|
- name: Creation du repertoire nextcloud
|
|
file:
|
|
path: /root/nextcloud
|
|
state: directory
|
|
|
|
- name: Copie du script get_docker
|
|
copy:
|
|
src: get_docker.sh
|
|
dest: /root/nextcloud
|
|
|
|
- name: Execution du script get_docker
|
|
script: /root/nextcloud/get_docker.sh
|
|
|
|
- name: Installation de docker-compose
|
|
shell: curl -L "https://github.com/docker/compose/releases/download/1.28.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
|
|
|
|
- name: Attribution des droits de docker compose
|
|
file:
|
|
path: /usr/local/bin/docker-compose
|
|
mode: '755'
|
|
|
|
- name: Copie de docker-compose.yml
|
|
copy:
|
|
src: /root/tools/ansible/gsb2021/roles/docker-nextcloud/files/docker-compose.yml
|
|
dest: /root/nextcloud
|
|
|
|
- name: Execution du fichier docker-compose.yml
|
|
shell: docker-compose up -d
|
|
args:
|
|
chdir: /root/nextcloud
|