More E208 mode fixes
Change-Id: I8157ec1f31b8c5a064b63002e8311b91ef9ce9ab See: https://ansible-lint.readthedocs.io/en/latest/default_rules.html#file-permissions-not-mentioned
This commit is contained in:
parent
73a2da3b12
commit
856866fdde
@ -28,6 +28,7 @@
|
||||
copy:
|
||||
content: "{{ buildset_registry.cert }}"
|
||||
dest: "{{ buildkit_cert_tmp.path }}"
|
||||
mode: preserve
|
||||
when: buildset_registry is defined and buildset_registry.cert
|
||||
|
||||
- name: Copy buildset registry TLS cert into worker container
|
||||
|
@ -2,6 +2,7 @@
|
||||
file:
|
||||
path: "{{ git_cache_root }}/{{ zj_project.canonical_name | dirname }}"
|
||||
state: directory
|
||||
mode: 0775
|
||||
with_items: "{{ zuul.projects.values() | list }}"
|
||||
loop_control:
|
||||
loop_var: zj_project
|
||||
|
@ -34,11 +34,13 @@
|
||||
file:
|
||||
state: directory
|
||||
path: /etc/docker
|
||||
mode: 0755
|
||||
- name: Write buildset registry TLS certificate
|
||||
become: true
|
||||
copy:
|
||||
content: "{{ buildset_registry.cert }}"
|
||||
dest: "{{ ca_dir }}/{{ buildset_registry_alias }}.crt"
|
||||
mode: 0644
|
||||
register: _tls_ca
|
||||
- name: Update CA certs
|
||||
command: "{{ ca_command }}"
|
||||
@ -74,6 +76,7 @@
|
||||
copy:
|
||||
content: "{{ docker_config | to_nice_json }}"
|
||||
dest: /etc/docker/daemon.json
|
||||
mode: 0644
|
||||
become: true
|
||||
|
||||
- name: Restart docker daemon
|
||||
@ -89,6 +92,7 @@
|
||||
file:
|
||||
state: directory
|
||||
path: /etc/containers
|
||||
mode: 0755
|
||||
- name: Modify registries.conf
|
||||
become: yes
|
||||
modify_registries_conf:
|
||||
@ -102,6 +106,7 @@
|
||||
file:
|
||||
state: directory
|
||||
path: /etc/buildkit/
|
||||
mode: 0755
|
||||
- name: Modify buildkitd.toml
|
||||
become: yes
|
||||
modify_buildkitd_toml:
|
||||
|
@ -48,6 +48,7 @@
|
||||
copy:
|
||||
content: "{{ docker_config | to_nice_json }}"
|
||||
dest: "/run/user/{{ ansible_user_uid }}/auth.json"
|
||||
mode: 0600
|
||||
# The next two tasks are for supporting k8s
|
||||
- name: Check if /var/lib/kubelet exists
|
||||
stat:
|
||||
|
@ -3,6 +3,7 @@
|
||||
file:
|
||||
state: directory
|
||||
path: /etc/docker
|
||||
mode: 0755
|
||||
|
||||
- name: Set docker_mirror fact
|
||||
when:
|
||||
|
@ -19,6 +19,7 @@
|
||||
file:
|
||||
path: "{{ registry_tempdir.path }}/auth"
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: Install passlib for htpasswd
|
||||
become: true
|
||||
@ -33,6 +34,7 @@
|
||||
create: true
|
||||
crypt_scheme: bcrypt
|
||||
path: "{{ registry_tempdir.path }}/auth/htpasswd"
|
||||
mode: 0644
|
||||
name: "{{ registry.username }}"
|
||||
password: "{{ registry.password }}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user