2020-02-24 11:56:43 +11:00
|
|
|
- name: Create zuul user
|
|
|
|
user:
|
|
|
|
name: zuul
|
|
|
|
comment: User for running remote zuul jobs
|
|
|
|
shell: /bin/bash
|
|
|
|
|
|
|
|
- name: Install sudo permissions for zuul
|
|
|
|
copy:
|
|
|
|
src: zuul.sudo
|
|
|
|
dest: '/etc/sudoers.d/zuul'
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0440
|
2020-02-26 10:25:18 +11:00
|
|
|
when: zuul_user_enable_sudo
|
2020-02-24 11:56:43 +11:00
|
|
|
|
|
|
|
- name: Install system-config per-project key for zuul
|
|
|
|
authorized_key:
|
|
|
|
user: zuul
|
|
|
|
state: present
|
2020-04-19 12:34:06 -05:00
|
|
|
key: '{{ zuul_user_authorized_key }}'
|