🔨 Add tags
This commit is contained in:
parent
9496262941
commit
c85bcb9d44
@ -24,7 +24,9 @@ steps:
|
|||||||
- name: Run ansible playbook
|
- name: Run ansible playbook
|
||||||
image: harbor.sebclem.fr/sebclem/drone-ansible-runner
|
image: harbor.sebclem.fr/sebclem/drone-ansible-runner
|
||||||
settings:
|
settings:
|
||||||
verbosity: 1
|
verbosity: ${verbosity=1}
|
||||||
|
limit: ${limit}
|
||||||
|
tags: ${tags}
|
||||||
playbook: sites.yml
|
playbook: sites.yml
|
||||||
galaxy_file: roles/requirements.yml
|
galaxy_file: roles/requirements.yml
|
||||||
check_syntax: true
|
check_syntax: true
|
||||||
|
@ -59,5 +59,9 @@ if [[ -n "$PLUGIN_LIMIT" ]]; then
|
|||||||
args="${args} --limit \"$PLUGIN_LIMIT\""
|
args="${args} --limit \"$PLUGIN_LIMIT\""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -n "$PLUGIN_TAGS" ]]; then
|
||||||
|
args="${args} --tags \"$PLUGIN_TAGS\""
|
||||||
|
fi
|
||||||
|
|
||||||
run_command "export ANSIBLE_HOST_KEY_CHECKING=False"
|
run_command "export ANSIBLE_HOST_KEY_CHECKING=False"
|
||||||
run_command "ansible-playbook $args"
|
run_command "ansible-playbook $args"
|
Reference in New Issue
Block a user