# deploy db postgresql, liquibase and redis - name: git archive local local_action: module: git repo: "https://{{ git_username | urlencode }}:{{ git_password | urlencode }}@git.valczeryba.ovh/v4l3n71n/{{ project_name }}.git" dest: "/home/valentin/src/" archive: "/tmp/{{ project_name }}.tar.gz" force: yes update: yes when: "project_name is defined" - name: Create directory file: path: "{{ item }}" state: directory with_items: "{{ project_directory }}" - name: Extract covas liquibase unarchive: src: "/tmp/{{ project_name }}.tar.gz" dest: "{{ project_src }}/{{ project_name }}" when: "project_name is defined" - name: Template env file template: src: "{{ project_env }}" dest: "{{ project_src }}/.env" when: "project_env is defined" - name: Copy docker compose server file template: src: "{{ docker_compose_file }}" dest: "{{ project_src }}/docker-compose.yml"