clank-manage/roles/repos/renovate/tasks/main.yml
2023-05-13 02:30:08 +02:00

28 lines
811 B
YAML

- name: Clone private Git repository
git:
repo: https://git:{{ git_token }}@git.front.kjuulh.io/kjuulh/renovate.git
dest: ~/git/git.front.kjuulh.io/kjuulh/renovate
version: main
force: yes
- name: Ensure Docker Compose file exists
stat:
path: ~/git/git.front.kjuulh.io/kjuulh/renovate/docker-compose.yaml
register: compose_file_stat
- name: Ensure .github.env exists
stat:
path: ~/git/git.front.kjuulh.io/kjuulh/renovate/.github.env
register: github_env_stat
- name: Ensure .env exists
stat:
path: ~/git/git.front.kjuulh.io/kjuulh/renovate/.env
register: env_stat
- name: Run Docker Compose
docker_compose:
project_src: ~/git/git.front.kjuulh.io/kjuulh/renovate/
when: compose_file_stat.stat.exists and github_env_stat.stat.exists and env_stat.stat.exists