Untitled
unknown
plain_text
a month ago
1.1 kB
1
Indexable
Never
# CHOCO-FOR-SERVER This role is created to install Chocolatey on a Windows Server . The role is configurable through various environment variables, allowing it to adapt to different environments such as `lab`, `stage`, or `prod`. # Variables Users need to provide below variable when using this role:- - `CHOCO_ENVIRONMENT` : `Mandatory` Specifies the environment in which the role is being executed. **Valid Values**: `lab`, `stage`, `prod` - `chocolatey_git_branch_tag` (OPTIONAL) : Specify the branch which the role should use else it will take the default value provided for this parameter. - `choco_installer_script` (OPTIONAL) : This is the URL path of Chocolated installer Script.Determines which installer script will be downloaded and executed based on the environment. If not specificied will point to the default value. ## Usage Example ```bash ansible-playbook install_choco.yml -e "env=prod chocolatey_git_branch_tag=v1.0.0" ``` This command runs the playbook in the `prod` environment, using the `v1.0.0` tag from the GitLab repository to retrieve the installer script.
Leave a Comment