--- - name: Creation du repertoire de nextcloud et traefik file: path: /root/gitea state: directory - name: Creation du repertoire gitea/config file: path: /root/gitea/config state: directory - name: Creation du repertoire gitea/certs file: path: /root/gitea/certs state: directory - name: Copie de static.yml copy: src: static.yml dest: /root/gitea/config - name: Copie de dynamic.yml copy: src: dynamic.yml dest: /root/gitea/config - name: Copie de docker-compose.yml copy: src: docker-compose.yml dest: /root/gitea - name: Copie de gitea-stop.sh copy: src: gitea-stop.sh dest: /root/gitea mode: '0755' - name: Copie de gitea-debug.sh copy: src: gitea-debug.sh dest: /root/gitea mode: '0755' - name: Copie de gitea-start.sh copy: src: gitea-start.sh dest: /root/gitea mode: '0755' - name: Copie de gitea-prune.sh copy: src: gitea-prune.sh/ dest: /root/gitea mode: '0755' - name: Telechargement mkcert get_url: url: http://depl/gsbstore/mkcert dest: /usr/local/bin mode: '0755' - name: Initialisation mkcert command: /usr/local/bin/mkcert -install args: chdir: /root/gitea - name: Creation certificats command: /usr/local/bin/mkcert -cert-file certs/local-cert.pem -key-file certs/local-key.pem "gitea3.sio.lan" "*.sio.lan" args: chdir: /root/gitea - name: vérification si le réseau proxy existe command: docker network ls --filter name=proxy register: net_proxy - name: création du réseau proxy command: docker network create proxy # when: net_proxy.stdout.find('proxy') == -1 when: "'proxy' not in net_proxy.stdout" #- name: Démarrage du docker-compose... #command: /bin/bash docker-compose up -d #args: #chdir: /root/nxc