2 - import_playbook: ../common-packer/provision/baseline.yaml
9 - include_role: name=lfit.system-update
12 - name: "Install devstack dependencies"
14 - name: Install xpath dependencies
21 - name: Install non-baseline requirements
31 - name: check if net link setup exists
33 path: /etc/udev/rules.d/80-net-setup-link.rules
34 register: rules_file_exists
35 - name: Update net link setup
38 dest: /etc/udev/rules.d/80-net-setup-link.rules
42 when: rules_file_exists.stat.exists == true
43 - name: Install RDMA (InfiniBand/iWARP/RoCE) requirements
50 - name: "Pre-Install yum and pip packages"
52 - name: Create /tmp/devstack directory
57 - name: Fetch openstack devstack-dev repo
59 repo: https://github.com/openstack-dev/devstack.git
61 version: "{{ os_branch }}"
62 - name: "Read openstack devstack dependencies"
63 shell: "sed -e 's/#.*//' /tmp/devstack/files/rpms/general"
67 - name: "Install non-baseline requirements for {{ os_branch }}"
69 name: "{{ sed_output.stdout_lines }}"
72 - name: git clone openstack core projects
73 git: repo='https://github.com/openstack/{{ item }}.git'
74 dest='/tmp/devstack/{{ item }}'
75 version='{{ os_branch }}'
84 - name: Install pip dependencies
90 pip install -c requirements/upper-constraints.txt -e "{{ item }}"
91 pip install -c requirements/upper-constraints.txt -r "{{ item }}/test-requirements.txt"
92 # ignore non-zero return code
107 - name: "Install openvswitch from relevant openstack branch"
109 - name: "Install CentOS openstack release {{ rdo_branch }}"
111 name: "centos-release-openstack-{{ rdo_branch }}"
114 - name: "Install openvswitch 2.8.2 for stable/queens"
116 name: openvswitch-2.8.2-1.el7
118 disable_gpg_check: yes
119 when: rdo_branch == 'queens'
121 - name: "Install openvswitch latest for stable/rocky"
125 disable_gpg_check: yes
126 when: rdo_branch == 'rocky'
129 # Workaround for git deps conflict on rocky
132 - name: Gather rpm package facts
135 - name: Replace git2u with git
136 command: yum replace -y git2u --replace-with git
137 when: ansible_facts.packages['git2u'] is defined
140 - name: "Cleanup devstack directory"
142 - name: "Removing /tmp/devstack"