- 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