| |
@@ -61,6 +61,7 @@
|
| |
- name: Check if image is already downloaded
|
| |
stat:
|
| |
path: "{{ image_cache_file }}"
|
| |
+ get_checksum: no
|
| |
register: _image_cache_file_stat
|
| |
|
| |
- name: Download if checksum doesn't match
|
| |
@@ -97,7 +98,7 @@
|
| |
content: |
|
| |
Defaults !requiretty
|
| |
zuul-worker ALL=(ALL) NOPASSWD:ALL
|
| |
- dest: "{{ image_tmp_dir }}/zuul-worker"
|
| |
+ dest: "{{ image_tmp_dir }}/zuul"
|
| |
|
| |
- name: Prepare the authorized_keys file
|
| |
copy:
|
| |
@@ -117,8 +118,8 @@
|
| |
--chmod '0600:/home/zuul-worker/.ssh/authorized_keys'
|
| |
--run-command 'chown -R zuul-worker:zuul-worker /home/zuul-worker/.ssh/'
|
| |
{# Setup sudoers file #}
|
| |
- --copy-in '{{ image_tmp_dir }}/zuul-worker:/etc/sudoers.d/'
|
| |
- --chmod '0440:/etc/sudoers.d/zuul-worker'
|
| |
+ --copy-in '{{ image_tmp_dir }}/zuul:/etc/sudoers.d/'
|
| |
+ --chmod '0440:/etc/sudoers.d/zuul'
|
| |
{# Install extra packages #}
|
| |
--install '{{ extra_packages | join(',') }}'
|
| |
{# Disable IPv6 because rdo-cloud does not route v6 #}
|
| |
The zuul-jobs revoke-sudo assumes the sudoer path is named zuul.