30 lines
802 B
YAML
Raw Normal View History

2022-10-15 22:31:37 +02:00
# create folder build
2022-10-15 22:06:06 +02:00
- name: git archive local
local_action:
module: git
2022-10-15 22:49:00 +02:00
repo: "https://{{ git_username | urlencode }}:{{ git_password | urlencode }}@git.valczeryba.ovh/v4l3n71n/{{ quarkus_project }}.git"
2022-10-15 22:06:06 +02:00
dest: "/home/valentin/src/"
2022-10-15 22:49:00 +02:00
archive: "/tmp/{{ quarkus_project }}.tar.gz"
2022-10-15 22:06:06 +02:00
force: yes
update: yes
2022-10-15 22:49:00 +02:00
when: "quarkus_project is defined"
2022-10-15 22:06:06 +02:00
- name: Create directory
file:
2022-10-15 22:49:00 +02:00
path: "{{ home_dir }}/{{ quarkus_project }}"
2022-10-15 22:06:06 +02:00
state: directory
2022-10-15 22:49:00 +02:00
when: "quarkus_project is defined"
2022-10-15 22:06:06 +02:00
2022-10-15 22:49:00 +02:00
- name: Extract covas quarkus
2022-10-15 22:06:06 +02:00
unarchive:
2022-10-15 22:49:00 +02:00
src: "/tmp/{{ quarkus_project }}.tar.gz"
dest: "{{ home_dir }}/{{ quarkus_project }}"
when: "quarkus_project is defined"
2022-10-15 22:06:06 +02:00
- name: Template env file
template:
2022-10-15 22:49:00 +02:00
src: "env-build.j2"
dest: "{{ home_dir }}/{{ quarkus_project }}/.env"