From 7ea0782d08059ca5b4cc177d52cfc42c67d0e3c6 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Wed, 11 Jun 2025 19:21:22 -0700 Subject: [PATCH] builder.yml: fix comments, note importance of invocation path Signed-off-by: Dan Mick --- ansible/examples/builder.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ansible/examples/builder.yml b/ansible/examples/builder.yml index ac17f73c..cc0e45e3 100644 --- a/ansible/examples/builder.yml +++ b/ansible/examples/builder.yml @@ -1,4 +1,8 @@ --- +# NOTE: there are references to relative paths here, and if you want +# them to work, this playbook must be in the parent of examples/, so, symlink +# it or something. (files/, templates/ are two such paths) +# ## Instead of trying to keep 4 separate playbooks up to date, let's do it all here. ## The only difference from using multiple playbooks is we need to specify `-e libvirt=true` and/or `-e permanent=true` if the builder will be permanent/static. ## Tested on: CentOS 7, CentOS 8, Xenial, Bionic, Focal, Leap 15.1 using ansible 2.8.5 @@ -6,7 +10,8 @@ ## Example: ## define labels in inventory "jenkins_labels" dict, keyed by fqdn ## -## ansible-playbook -vvv -M ./library/ builder.yml, "api_uri": "https://jenkins.ceph.com"}' --limit braggi01* +## ansible-playbook -vvv -M ./library/ builder.yml, -e '{"api_uri": "https://jenkins.ceph.com"}' --limit braggi01* +# ## ## secrets files jenkins.ceph.com.apitoken.yml and 2.jenkins.ceph.com.apitoken.yml must ## exist in ANSIBLE_SECRETS_PATH -- 2.39.5