Option to install git

This commit is contained in:
2026-03-04 13:10:31 -05:00
parent b100362a79
commit b735a21a31
2 changed files with 12 additions and 0 deletions

6
Jenkinsfile vendored
View File

@@ -27,6 +27,11 @@ pipeline {
defaultValue: '2', defaultValue: '2',
description: 'RAM in GB' description: 'RAM in GB'
) )
booleanParam(
name: 'INSTALL_GIT',
defaultValue: false,
description: 'Install git'
)
booleanParam( booleanParam(
name: 'INSTALL_DOCKER', name: 'INSTALL_DOCKER',
defaultValue: false, defaultValue: false,
@@ -204,6 +209,7 @@ all:
sh """ sh """
ansible-playbook playbooks/configure.yml \ ansible-playbook playbooks/configure.yml \
-i temp_inventory.yml \ -i temp_inventory.yml \
-e "install_git=${params.INSTALL_GIT}" \
-e "install_docker=${params.INSTALL_DOCKER}" \ -e "install_docker=${params.INSTALL_DOCKER}" \
-e "install_nfs_folder=${params.INSTALL_NFS_FOLDER}" \ -e "install_nfs_folder=${params.INSTALL_NFS_FOLDER}" \
-e "install_nfs_vault=${params.INSTALL_NFS_VAULT}" -e "install_nfs_vault=${params.INSTALL_NFS_VAULT}"

View File

@@ -22,6 +22,12 @@
upgrade: dist upgrade: dist
autoremove: true autoremove: true
- name: Install git
ansible.builtin.apt:
name: git
state: present
when: install_git | default(false) | bool
- name: Include Docker role - name: Include Docker role
ansible.builtin.include_role: ansible.builtin.include_role:
name: docker name: docker