--- - name: "Create cuyper {{ cuyper__cuyper_instance_path }}" ansible.builtin.file: path: "{{ cuyper__cuyper_instance_path }}" state: directory mode: '0755' - name: "Create cuyper storage path {{ cuyper__cuyper_storage_path }}" ansible.builtin.file: path: "{{ cuyper__cuyper_storage_path }}" state: directory mode: '0755' - name: "Create cuyper config path {{ cuyper__cuyper_config_path }}" ansible.builtin.file: path: "{{ cuyper__cuyper_config_path }}" state: directory mode: '0755' - name: "Create cuyper config path {{ cuyper__cuyper_config_path }}/nginx" ansible.builtin.file: path: "{{ cuyper__cuyper_config_path }}/nginx" state: directory mode: '0755' - name: "Clone {{ cuyper__repo }} repository {{ cuyper__cuyper_instance_path }}/cuyper-hook/" ansible.builtin.git: repo: "{{ cuyper__repo }}" dest: "{{ cuyper__cuyper_instance_path }}/cuyper-hook/" version: main update: yes - name: "create env on {{ cuyper__cuyper_instance_path }}/.env" ansible.builtin.template: src: templates/env.cuyper-hook.j2 dest: "{{ cuyper__cuyper_instance_path }}/.env" - name: "create config {{ cuyper__cuyper_config_path }}/config.yml" ansible.builtin.template: src: templates/config.cuyper-hook.j2 dest: "{{ cuyper__cuyper_config_path }}/config.yml" - name: "Touch vhosts {{ cuyper__cuyper_config_path }}/vhosts.yml" ansible.builtin.file: path: "{{ cuyper__cuyper_config_path }}/vhosts.yml" state: touch - name: "create docker-compose.yml on {{ cuyper__cuyper_instance_path }}/docker-compose.yml" ansible.builtin.template: src: templates/docker-compose.cuyper-hook.j2 dest: "{{ cuyper__cuyper_instance_path }}/docker-compose.yml" mode: '0644' - name: "Create portainer storage path on {{ cuyper__portainer_storage_path }}" ansible.builtin.file: path: "{{ cuyper__portainer_storage_path }}" state: directory mode: '0755' - name: "docker compose restarted cuyper/portainer/loadbalancer on {{ cuyper__cuyper_instance_path }}" community.docker.docker_compose_v2: project_src: "{{ cuyper__cuyper_instance_path }}" state: present build: always recreate: always