i want to install some roles from my requirements.yaml file ,
which looks like this :
requirements.yaml:
- src: git@gitlab.company.com:mygroup/ansible-base.git
scm: git
version: "mybranch" #MY BRANCH AS PARAMETER
to install , i'm used to run this command :
ansible-galaxy install -f -r playbook/requirements.yaml
my purpose is how to configure my file to get the version attribute value as parameter , something like this
version: "{{branch_var}}" #MY BRANCH AS PARAMETER
and be able to pass that parameter from with the command line , sometjhing like this :
ansible-galaxy install -f -r playbook/requirements.yaml -e branch_var="mybranch"
Is that possible ? , if not is there any alternative ?