]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: Add tag to python interpreter var setting tasks 2327/head
authorDavid Galloway <david.galloway@ibm.com>
Tue, 18 Feb 2025 03:13:09 +0000 (22:13 -0500)
committerDavid Galloway <david.galloway@ibm.com>
Tue, 18 Feb 2025 03:13:09 +0000 (22:13 -0500)
I'm working on a combination of terraform and ansible to quickly
spin up instances in IBM Cloud so they can join Jenkins as builders.

Part of this process involves creating a virtualenv and running ansible
from it.  python-jenkins needs to be installed in the virtualenv and
setting the python interpreters inside the playbook breaks that.

This PR will let me `--skip-tags interpreter`

Signed-off-by: David Galloway <david.galloway@ibm.com>
ansible/examples/builder.yml

index 33a179efc43ceb640c87a8eeb891987630d2248a..cbb026fe9e11e9342cd3cd3ae6b0d3986dfc7f25 100644 (file)
             (ansible_os_family == "Debian" and ansible_distribution_major_version|int <= 16)
       tags:
         - register
+        - interpreter
 
     - set_fact:
         pip_version: pip3
             ansible_os_family == "Suse"
       tags:
         - register
+        - interpreter
 
     - name: Install six, latest one
       pip: