From c85bcb9d44e9f0a97143732b2a2aeb3ae8984b78 Mon Sep 17 00:00:00 2001 From: SebClem Date: Mon, 28 Feb 2022 11:27:38 +0100 Subject: [PATCH] :hammer: Add tags --- README.md | 4 +++- entrypoint | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8dff66c..389883e 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,9 @@ steps: - name: Run ansible playbook image: harbor.sebclem.fr/sebclem/drone-ansible-runner settings: - verbosity: 1 + verbosity: ${verbosity=1} + limit: ${limit} + tags: ${tags} playbook: sites.yml galaxy_file: roles/requirements.yml check_syntax: true diff --git a/entrypoint b/entrypoint index 86fea88..6f3e7a1 100755 --- a/entrypoint +++ b/entrypoint @@ -59,5 +59,9 @@ if [[ -n "$PLUGIN_LIMIT" ]]; then args="${args} --limit \"$PLUGIN_LIMIT\"" fi +if [[ -n "$PLUGIN_TAGS" ]]; then + args="${args} --tags \"$PLUGIN_TAGS\"" +fi + run_command "export ANSIBLE_HOST_KEY_CHECKING=False" run_command "ansible-playbook $args" \ No newline at end of file