branch für git (#164)
testvar docker branch branch docker branch dotfiles Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#164 Co-Authored-By: mg <mg@noreply.git.mgrote.net> Co-Committed-By: mg <mg@noreply.git.mgrote.net>
This commit is contained in:
parent
7ce808198e
commit
b435a3dceb
5 changed files with 5 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
dir_name: docker-homer
|
||||
repository_url: git.mgrote.net/mg/docker-homer
|
||||
state: present
|
||||
git_branch: test
|
||||
- name: watchtower
|
||||
dir_name: docker-watchtower
|
||||
repository_url: git.mgrote.net/mg/docker-watchtower
|
||||
|
|
|
@ -22,6 +22,7 @@ docker_compose_projects:
|
|||
repository_user_password: k1BvXXXXXXXrbg # git user password for login on private Repositories; optional; just dont let it empty, remove it
|
||||
network_name: homer-network # docker-network to create; optional; just dont let it empty, remove it
|
||||
state: present|absent # should the project be present or absent?
|
||||
git_branch: master # branch to checkout; optional; just dont let it empty, remove it
|
||||
```
|
||||
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
ansible.builtin.git:
|
||||
repo: "https://{{ login | default () }}{{ item.repository_url }}"
|
||||
dest: "{{ project_dir }}"
|
||||
version: "{{ item.git_branch | default ('master') }}"
|
||||
register: repo
|
||||
|
||||
- name: create networks - "{{ item.name }}"
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
dotfiles_repo_url: https://git.mgrote.net/mg/dotfiles # url zum repo
|
||||
dotfiles_repo_path: /home/mg/dotfiles # wo soll das repo lokal gespeichert werden
|
||||
dotfiles_repo_branch: master #default branch for checking out
|
||||
dotfiles_files: # welche dateien sollen wohin verlinkt werden (ln -s)
|
||||
- repo_path: "{{ dotfiles_repo_path}}/.vimrc"
|
||||
local_path: "/home/mg/.vimrc"
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
repo: "{{ dotfiles_repo_url }}"
|
||||
dest: "{{ dotfiles_repo_path }}"
|
||||
depth: 1
|
||||
version: "{{ dotfiles_repo_branch }}"
|
||||
register: git_clone
|
||||
|
||||
- name: set owner recursive for repo
|
||||
|
|
Loading…
Reference in a new issue