add git gestion

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2025-11-21 22:47:37 +01:00
commit 5f977df8f3
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
3 changed files with 22 additions and 3 deletions

8
defaults/main.yml Normal file
View file

@ -0,0 +1,8 @@
---
deploy:
git_user: ""
git_token: ""
git_host: "git.g3e.fr"
...

View file

@ -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"

View file

@ -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 }}"