add git gestion
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
19e73d7354
commit
5f977df8f3
3 changed files with 22 additions and 3 deletions
8
defaults/main.yml
Normal file
8
defaults/main.yml
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
git_user: ""
|
||||||
|
git_token: ""
|
||||||
|
git_host: "git.g3e.fr"
|
||||||
|
|
||||||
|
...
|
||||||
|
|
@ -6,4 +6,10 @@
|
||||||
install_recommends: no
|
install_recommends: no
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
cache_valid_time: 60
|
cache_valid_time: 60
|
||||||
loop: "{{ packages | dict2items }}"
|
loop: "{{ __packages | dict2items }}"
|
||||||
|
|
||||||
|
- name: Cloner un two_with_git
|
||||||
|
ansible.builtin.git:
|
||||||
|
repo: "https://{{ __git.__user }}:{{ __git.__token }}@{{ __git.__host }}/syonad/two_with_bash.git"
|
||||||
|
dest: "/opt/two_with_bash"
|
||||||
|
version: "main"
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
packages:
|
__packages:
|
||||||
vim: {}
|
vim: {}
|
||||||
htop: {}
|
htop: {}
|
||||||
socat: {}
|
socat: {}
|
||||||
|
|
@ -13,3 +13,8 @@ packages:
|
||||||
whois: {}
|
whois: {}
|
||||||
tcpdump: {}
|
tcpdump: {}
|
||||||
bridge-utils: {}
|
bridge-utils: {}
|
||||||
|
|
||||||
|
__git:
|
||||||
|
__user: "{{ deploy.git_user }}"
|
||||||
|
__token: "{{ deploy.git_token }}"
|
||||||
|
__host: "{{ deploy.git_host }}"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue