More E208 (22)

Change-Id: I8cbb919c39bdb099eaec076c7bcf2ea0b84a6475
This commit is contained in:
Sorin Sbarnea 2020-11-04 08:30:24 +00:00 committed by zbr
parent 75a1623f12
commit 7325aca987
11 changed files with 19 additions and 1 deletions

View File

@ -7,6 +7,7 @@
file: file:
path: "{{ ansible_user_dir }}/zuul-output/logs/pods" path: "{{ ansible_user_dir }}/zuul-output/logs/pods"
state: directory state: directory
mode: 0755
- name: Save pod descriptions - name: Save pod descriptions
loop: "{{ podlist.stdout_lines | default([]) }}" loop: "{{ podlist.stdout_lines | default([]) }}"
@ -27,6 +28,7 @@
file: file:
path: "{{ ansible_user_dir }}/zuul-output/logs/kubelet" path: "{{ ansible_user_dir }}/zuul-output/logs/kubelet"
state: directory state: directory
mode: 0755
- name: Save kubelet logs - name: Save kubelet logs
shell: "journalctl -u kubelet &> {{ ansible_user_dir }}/zuul-output/logs/kubelet/kubelet.txt" shell: "journalctl -u kubelet &> {{ ansible_user_dir }}/zuul-output/logs/kubelet/kubelet.txt"

View File

@ -15,6 +15,7 @@
file: file:
path: "{{ ansible_user_dir }}/.kube" path: "{{ ansible_user_dir }}/.kube"
state: directory state: directory
mode: 0700
- name: Setup zuul user kube config - name: Setup zuul user kube config
copy: copy:

View File

@ -7,6 +7,7 @@
file: file:
state: directory state: directory
path: "{{ bazelisk_target | dirname }}" path: "{{ bazelisk_target | dirname }}"
mode: 0755
when: bazelisk_installed.rc != 0 when: bazelisk_installed.rc != 0
- name: Download bazelisk - name: Download bazelisk

View File

@ -5,6 +5,7 @@
state: directory state: directory
owner: "{{ ansible_user }}" owner: "{{ ansible_user }}"
group: "{{ ansible_user }}" group: "{{ ansible_user }}"
mode: 0755
- name: Clone devstack - name: Clone devstack
git: git:
repo: https://opendev.org/openstack/devstack repo: https://opendev.org/openstack/devstack
@ -14,6 +15,7 @@
template: template:
dest: /opt/devstack/local.conf dest: /opt/devstack/local.conf
src: local.conf.j2 src: local.conf.j2
mode: 0644
- name: Run devstack - name: Run devstack
command: ./stack.sh command: ./stack.sh
args: args:

View File

@ -30,6 +30,7 @@
[registries.block] [registries.block]
registries = [] registries = []
dest: /etc/containers/registries.conf dest: /etc/containers/registries.conf
mode: 0644
become: true become: true
- name: Set crio cgroup driver - name: Set crio cgroup driver
ini_file: ini_file:
@ -37,4 +38,5 @@
section: crio.runtime section: crio.runtime
option: cgroup_manager option: cgroup_manager
value: '"cgroupfs"' value: '"cgroupfs"'
mode: 0644
become: true become: true

View File

@ -13,6 +13,7 @@
copy: copy:
src: 00-nodesource.pref src: 00-nodesource.pref
dest: /etc/apt/preferences.d/00-nodesource.pref dest: /etc/apt/preferences.d/00-nodesource.pref
mode: 0644
become: yes become: yes
- name: Add all repositories - name: Add all repositories

View File

@ -8,6 +8,7 @@
copy: copy:
content: "{{ zj_item['data'] }}" content: "{{ zj_item['data'] }}"
dest: "{{ gpg_key_tempdir.path }}/key-{{ zj_idx }}.gpg" dest: "{{ gpg_key_tempdir.path }}/key-{{ zj_idx }}.gpg"
mode: 0644
loop: "{{ repositories_keys }}" loop: "{{ repositories_keys }}"
loop_control: loop_control:
loop_var: zj_item loop_var: zj_item

View File

@ -8,6 +8,7 @@
copy: copy:
content: "{{ zj_item['data'] }}" content: "{{ zj_item['data'] }}"
dest: "{{ gpg_key_tempdir.path }}/key-{{ zj_idx }}.gpg" dest: "{{ gpg_key_tempdir.path }}/key-{{ zj_idx }}.gpg"
mode: 0644
loop: "{{ repositories_keys }}" loop: "{{ repositories_keys }}"
loop_control: loop_control:
loop_var: zj_item loop_var: zj_item

View File

@ -8,11 +8,13 @@
file: file:
path: "{{ ansible_env.HOME }}/.phoronix-test-suite" path: "{{ ansible_env.HOME }}/.phoronix-test-suite"
state: directory state: directory
mode: 0755
- name: Install config - name: Install config
copy: copy:
src: user-config.xml src: user-config.xml
dest: "{{ ansible_env.HOME }}/.phoronix-test-suite/user-config.xml" dest: "{{ ansible_env.HOME }}/.phoronix-test-suite/user-config.xml"
mode: 0644
- name: Ensure test results are cleaned - name: Ensure test results are cleaned
file: file:
@ -23,3 +25,4 @@
file: file:
path: "{{ ansible_env.HOME }}/test-results/" path: "{{ ansible_env.HOME }}/test-results/"
state: directory state: directory
mode: 0755

View File

@ -40,6 +40,7 @@
file: file:
path: "{{ terraform_install_tempdir.path }}/{{ terraform_package }}" path: "{{ terraform_install_tempdir.path }}/{{ terraform_package }}"
state: directory state: directory
mode: 0755
- name: Unarchive terraform - name: Unarchive terraform
unarchive: unarchive:
@ -51,12 +52,13 @@
file: file:
path: "{{ terraform_install_dir }}" path: "{{ terraform_install_dir }}"
state: directory state: directory
mode: 0755
- name: Install terraform - name: Install terraform
copy: copy:
src: "{{ terraform_install_tempdir.path }}/{{ terraform_package }}/terraform" src: "{{ terraform_install_tempdir.path }}/{{ terraform_package }}/terraform"
dest: "{{ terraform_install_dir }}/terraform" dest: "{{ terraform_install_dir }}/terraform"
mode: '0755' mode: 0755
owner: "{{ ansible_user }}" owner: "{{ ansible_user }}"
remote_src: yes remote_src: yes

View File

@ -8,6 +8,7 @@
file: file:
path: /tmp/zookeeper path: /tmp/zookeeper
state: directory state: directory
mode: 0755
become: true become: true
- name: Get and extract Zookeeper - name: Get and extract Zookeeper
@ -29,6 +30,7 @@
src: /opt/zookeeper/conf/zoo_sample.cfg src: /opt/zookeeper/conf/zoo_sample.cfg
dest: /opt/zookeeper/conf/zoo.cfg dest: /opt/zookeeper/conf/zoo.cfg
remote_src: true remote_src: true
mode: 0644
become: true become: true
- name: Ensure Zookeeper not running - name: Ensure Zookeeper not running