Playbook #3

/home/zuul/src/opendev.org/opendev/system-config/playbooks/service-bridge.yaml

Report Status CLI Date Duration Controller User Versions Hosts Plays Tasks Results Files Records
18 Jul 2025 20:45:39 +0000 00:01:42.73 bridge99.opendev.org root Ansible 2.15.13 ara 1.7.2 (client), 1.7.2 (server) Python 3.10.12 1 2 92 90 34 0

File: /home/zuul/src/opendev.org/opendev/system-config/playbooks/roles/install-launch-node/tasks/main.yaml

- name: Create launcher venv
  include_role:
    name: create-venv
  vars:
    create_venv_path: '/usr/launcher-venv'

- name: Add RAX rdns credentials
  template:
    src: rax-rdns-auth.conf.j2
    dest: /etc/rax-rdns-auth.conf
    owner: root
    group: root
    mode: '0600'

# This is used to timestamp the launch-env-req.txt file.  This means
# we will run --upgrade on the venv once a day, but otherwise leave it
# alone.
- name: Install node launcher stamp
  template:
    src: launch-env-req.txt.j2
    dest: /usr/launcher-venv/launch-env-req.txt
  register: _upgrade

- name: Install node launcher
  pip:
    name: 'file:///home/zuul/src/opendev.org/opendev/system-config/launch'
    virtualenv: '/usr/launcher-venv'
    state: '{{ "latest" if _upgrade.changed else "present" }}'
    extra_args: '--upgrade-strategy=eager'

# Admins use openstackclient on the bastion host to deal with cloud
# issues.  The best version to use is the one from launch node, as
# whatever workarounds we need to talk to all clouds should be in that
# environment.  For convenience link this version globally
- name: Link openstack client globally
  file:
    src: /usr/launcher-venv/bin/openstack
    dest: /usr/local/bin/openstack
    owner: root
    group: root
    state: link