feat(git.yml): add version handling for git repository installations
This commit is contained in:
@@ -28,6 +28,7 @@
|
|||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: "{{ git_firewall_repository.repo }}"
|
repo: "{{ git_firewall_repository.repo }}"
|
||||||
dest: "{{ git_firewall_repository.dest }}"
|
dest: "{{ git_firewall_repository.dest }}"
|
||||||
|
version: "{{ git_firewall_repository.version | default(git_firewall_repository.branch) | default(git_default_branch | default('main')) }}"
|
||||||
when: git_firewall_repository is defined and git_firewall_repository | length > 0
|
when: git_firewall_repository is defined and git_firewall_repository | length > 0
|
||||||
tags:
|
tags:
|
||||||
- git-firewall-repository
|
- git-firewall-repository
|
||||||
@@ -40,6 +41,7 @@
|
|||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: "{{ item.repo }}"
|
repo: "{{ item.repo }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
|
version: "{{ item.version | default(item.branch) | default(git_default_branch | default('main')) }}"
|
||||||
with_items: "{{ git_default_repositories }}"
|
with_items: "{{ git_default_repositories }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
@@ -54,6 +56,7 @@
|
|||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: "{{ item.repo }}"
|
repo: "{{ item.repo }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
|
version: "{{ item.version | default(item.branch) | default(git_default_branch | default('main')) }}"
|
||||||
with_items: "{{ git_oopen_server_repositories }}"
|
with_items: "{{ git_oopen_server_repositories }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
@@ -69,6 +72,7 @@
|
|||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: "{{ item.repo }}"
|
repo: "{{ item.repo }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
|
version: "{{ item.version | default(item.branch) | default(git_default_branch | default('main')) }}"
|
||||||
with_items: "{{ git_warenform_server_repositories }}"
|
with_items: "{{ git_warenform_server_repositories }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
@@ -84,6 +88,7 @@
|
|||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: "{{ item.repo }}"
|
repo: "{{ item.repo }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
|
version: "{{ item.version | default(item.branch) | default(git_default_branch | default('main')) }}"
|
||||||
with_items: "{{ git_lxc_guest_repositories }}"
|
with_items: "{{ git_lxc_guest_repositories }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
@@ -99,6 +104,7 @@
|
|||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: "{{ item.repo }}"
|
repo: "{{ item.repo }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
|
version: "{{ item.version | default(item.branch) | default(git_default_branch | default('main')) }}"
|
||||||
with_items: "{{ git_lxc_host_repositories }}"
|
with_items: "{{ git_lxc_host_repositories }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
@@ -114,6 +120,7 @@
|
|||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: "{{ item.repo }}"
|
repo: "{{ item.repo }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
|
version: "{{ item.version | default(item.branch) | default(git_default_branch | default('main')) }}"
|
||||||
with_items: "{{ git_gateway_repositories }}"
|
with_items: "{{ git_gateway_repositories }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
@@ -129,6 +136,7 @@
|
|||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: "{{ item.repo }}"
|
repo: "{{ item.repo }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
|
version: "{{ item.version | default(item.branch) | default(git_default_branch | default('main')) }}"
|
||||||
with_items: "{{ git_apache2_repositories }}"
|
with_items: "{{ git_apache2_repositories }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
@@ -144,6 +152,7 @@
|
|||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: "{{ item.repo }}"
|
repo: "{{ item.repo }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
|
version: "{{ item.version | default(item.branch) | default(git_default_branch | default('main')) }}"
|
||||||
with_items: "{{ git_nginx_repositories }}"
|
with_items: "{{ git_nginx_repositories }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
@@ -159,6 +168,7 @@
|
|||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: "{{ item.repo }}"
|
repo: "{{ item.repo }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
|
version: "{{ item.version | default(item.branch) | default(git_default_branch | default('main')) }}"
|
||||||
with_items: "{{ git_mysql_repositories }}"
|
with_items: "{{ git_mysql_repositories }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
@@ -174,6 +184,7 @@
|
|||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: "{{ item.repo }}"
|
repo: "{{ item.repo }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
|
version: "{{ item.version | default(item.branch) | default(git_default_branch | default('main')) }}"
|
||||||
with_items: "{{ git_postgresql_repositories }}"
|
with_items: "{{ git_postgresql_repositories }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
@@ -189,6 +200,7 @@
|
|||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: "{{ item.repo }}"
|
repo: "{{ item.repo }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
|
version: "{{ item.version | default(item.branch) | default(git_default_branch | default('main')) }}"
|
||||||
with_items: "{{ git_nextcloud_repositories }}"
|
with_items: "{{ git_nextcloud_repositories }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
@@ -204,6 +216,7 @@
|
|||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: "{{ item.repo }}"
|
repo: "{{ item.repo }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
|
version: "{{ item.version | default(item.branch) | default(git_default_branch | default('main')) }}"
|
||||||
with_items: "{{ git_dns_repositories }}"
|
with_items: "{{ git_dns_repositories }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
@@ -219,6 +232,7 @@
|
|||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: "{{ item.repo }}"
|
repo: "{{ item.repo }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
|
version: "{{ item.version | default(item.branch) | default(git_default_branch | default('main')) }}"
|
||||||
with_items: "{{ git_backup_repositories }}"
|
with_items: "{{ git_backup_repositories }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
@@ -235,6 +249,7 @@
|
|||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: "{{ item.repo }}"
|
repo: "{{ item.repo }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
|
version: "{{ item.version | default(item.branch) | default(git_default_branch | default('main')) }}"
|
||||||
with_items: "{{ git_samba_repositories }}"
|
with_items: "{{ git_samba_repositories }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
@@ -251,6 +266,7 @@
|
|||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: "{{ item.repo }}"
|
repo: "{{ item.repo }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
|
version: "{{ item.version | default(item.branch) | default(git_default_branch | default('main')) }}"
|
||||||
with_items: "{{ git_mailserver_repositories }}"
|
with_items: "{{ git_mailserver_repositories }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
@@ -266,6 +282,7 @@
|
|||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: "{{ item.repo }}"
|
repo: "{{ item.repo }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
|
version: "{{ item.version | default(item.branch) | default(git_default_branch | default('main')) }}"
|
||||||
with_items: "{{ git_sympa_repositories }}"
|
with_items: "{{ git_sympa_repositories }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
@@ -281,6 +298,7 @@
|
|||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: "{{ item.repo }}"
|
repo: "{{ item.repo }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
|
version: "{{ item.version | default(item.branch) | default(git_default_branch | default('main')) }}"
|
||||||
with_items: "{{ git_jitsi_meet_repositories }}"
|
with_items: "{{ git_jitsi_meet_repositories }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
@@ -326,6 +344,7 @@
|
|||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: "{{ item.repo }}"
|
repo: "{{ item.repo }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
|
version: "{{ item.version | default(item.branch) | default(git_default_branch | default('main')) }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
with_items: "{{ git_other_repositories }}"
|
with_items: "{{ git_other_repositories }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user