84018c747d
For using job variables (which are passed in job definitions as 'vars') in quickstart we need to pass them to nested ansible. Just like we do with zuul variables. Change-Id: I482186bfed1de94ac3c7e9ec38db93786cf1f63d
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
- name: Swap is essential as we are not meeting memory requirements
|
|
include_role:
|
|
name: configure-swap
|
|
|
|
- name: Set legacy log path
|
|
include_role:
|
|
name: set-zuul-log-path-fact
|
|
|
|
- name: Ensure legacy workspace directory
|
|
file:
|
|
path: '{{ workspace }}'
|
|
state: directory
|
|
|
|
- name: Ensure legacy logs directory
|
|
file:
|
|
path: '{{ workspace }}/logs'
|
|
state: directory
|
|
|
|
- name: Assure src folder has safe permissions
|
|
# Workaround for https://bugs.launchpad.net/tripleo/+bug/1807703
|
|
file:
|
|
path: /home/zuul/src/
|
|
state: directory
|
|
mode: u=rwX,g=rX,o=rX
|
|
recurse: yes
|
|
|
|
- name: "set zull_dump"
|
|
set_fact:
|
|
zuul_dump: "{{ {'zuul': zuul} }}"
|
|
|
|
- name: Dump zuul variables on the host to pass it to inner ansible
|
|
copy:
|
|
content: "{{ zuul_dump|to_nice_yaml }}"
|
|
dest: "{{ workspace }}/logs/zuul-variables.yaml"
|
|
|
|
- name: Dump hostvars with job variables
|
|
set_fact:
|
|
local_hostvars: "{{ {'job': hostvars[inventory_hostname]} }}"
|
|
|
|
- name: Dump hostvars on the host to pass it to inner ansible
|
|
copy:
|
|
content: "{{ local_hostvars|to_nice_yaml }}"
|
|
dest: "{{ workspace }}/logs/hostvars-variables.yaml"
|
|
|
|
- name: Remove package exclusions from package manager
|
|
become: true
|
|
ini_file:
|
|
path: "{{ item }}"
|
|
section: main
|
|
option: exclude
|
|
state: absent
|
|
failed_when: false
|
|
with_items:
|
|
- /etc/yum.conf
|
|
- /etc/dnf/dnf.conf
|