2022-10-11 22:50:34 +02:00
|
|
|
# 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
|
2023-01-03 19:05:39 +01:00
|
|
|
template:
|
2022-10-11 22:50:34 +02:00
|
|
|
src: "{{ docker_compose_file }}"
|
2022-10-31 20:30:26 +01:00
|
|
|
dest: "{{ project_src }}/docker-compose.yml"
|