2020-11-07 10:49:53 +00:00
|
|
|
---
|
|
|
|
- name: Create user for beacon node builds
|
|
|
|
user:
|
|
|
|
name: '{{ beacon_node_builds_user }}'
|
2021-02-08 10:46:24 +00:00
|
|
|
group: '{{ beacon_node_builds_group }}'
|
2020-11-07 10:49:53 +00:00
|
|
|
groups: ['docker']
|
|
|
|
shell: '/bin/zsh'
|
|
|
|
|
|
|
|
- name: Set disable rebase as merge strategy
|
2020-11-20 16:15:58 +00:00
|
|
|
git_config:
|
|
|
|
scope: 'global'
|
|
|
|
name: 'pull.rebase'
|
|
|
|
value: false
|
2020-11-07 10:49:53 +00:00
|
|
|
become_user: '{{ beacon_node_builds_user }}'
|
|
|
|
|
|
|
|
- name: Configure access to Docker Hub
|
2020-11-20 15:54:50 +00:00
|
|
|
docker_login:
|
|
|
|
username: '{{ beacon_node_builds_docker_hub_user | mandatory }}'
|
|
|
|
password: '{{ beacon_node_builds_docker_hub_token | mandatory }}'
|
|
|
|
become_user: '{{ beacon_node_builds_user }}'
|
2021-02-08 10:46:24 +00:00
|
|
|
|
|
|
|
- name: Sudoers file to let non-root users start jobs
|
|
|
|
template:
|
|
|
|
src: 'builds_sudoers.j2'
|
|
|
|
dest: '/etc/sudoers.d/80-beacon-node-builds'
|
|
|
|
mode: 0440
|