tripleo-quickstart-extras/roles/overcloud-prep-containers/tasks/main.yml
Sorin Sbarnea 04585eb6f4 Use dnf and python3 on platforms where these are default
Roles do not need to make any assumptions about having some facts
already gathered, thus at start they should assure they gather any
missiong facts that are used inside the role.

Change-Id: I49fd1a0c070d96aecb880164acde490c9e7c95ef
Story: https://tree.taiga.io/project/tripleo-ci-board/task/153
Depends-On: https://review.openstack.org/#/c/615489/
2018-11-05 15:58:33 +00:00

25 lines
630 B
YAML

---
# tasks file for ansible-role-tripleo-overcloud-prep-containers
- name: gather facts needed by role
setup:
gather_subset: "!min,user_dir,python"
when: >
ansible_user_dir is not defined or
ansible_python is not defined
- name: set python_cmd
set_fact:
python_cmd: "python{{ ansible_python.version.major }}"
cacheable: true
when: python_cmd is not defined
- include: create-scripts.yml
tags:
- undercloud-scripts
when: release in ['ocata', 'pike', 'queens', 'rocky']
- include: overcloud-prep-containers.yml
tags:
- containers
when: release in ['ocata', 'pike', 'queens', 'rocky']