feat: add main infra
This commit is contained in:
27
roles/repos/renovate/tasks/main.yml
Normal file
27
roles/repos/renovate/tasks/main.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
- 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
|
Reference in New Issue
Block a user