forked from LibreSchool/server-config
FEATURE: now it's possible to select the client's repo & branch
This commit is contained in:
parent
bc0f279ffa
commit
d3288d7a60
@ -23,4 +23,5 @@ org_street: "Via Zenale e Butinone, 20"
|
||||
mirror_mode: nfs
|
||||
mirror_nfs_share: 192.168.255.1:/var/spool/apt-mirror/mirror
|
||||
#remote_mirror: ubuntu.fastbull.org
|
||||
client_gitrepo: "https://github.com/bglug-it/client-pull-installation.git"
|
||||
client_gitbranch: master
|
||||
|
2
roles/git-daemon/defaults/main.yml
Normal file
2
roles/git-daemon/defaults/main.yml
Normal file
@ -0,0 +1,2 @@
|
||||
---
|
||||
client_gitrepo: "https://github.com/bglug-it/client-pull-installation.git"
|
@ -48,7 +48,7 @@
|
||||
# E' in forma di shell perché non c'è modo di passare ad ansible
|
||||
# il parametro --mirror
|
||||
- name: Clono il repository client-pull-installation
|
||||
shell: git clone --mirror https://github.com/bglug-it/client-pull-installation.git /var/lib/git-daemon/repositories/client-pull-installation.git
|
||||
shell: git clone --mirror {{ ansible_local.domain.client_gitrepo }} /var/lib/git-daemon/repositories/client-pull-installation.git
|
||||
become: yes
|
||||
become_user: git-daemon
|
||||
when: chk_clientpullinstall_repo|changed
|
||||
|
Loading…
x
Reference in New Issue
Block a user