ansible/roles/fedora-web/registry/tasks/main.yml
Ryan Lerch 62952df107 ansiblelint fixes-- fqcn[action-core] - file to ansible.builtin.file
Replaces many references to  file: with ansible.builtin.file

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 10:41:52 +10:00

44 lines
1.3 KiB
YAML

---
- name: Make registry-signatures dir
ansible.builtin.file: state=directory path=/srv/web/registry-signatures owner=apache group=sysadmin-releng mode=2775 setype=httpd_sys_content_t seuser=system_u
tags:
- fedora-web
- name: Make registry-index dir
ansible.builtin.file: state=directory path=/srv/web/registry-index owner=apache group=apache mode=755 setype=httpd_sys_content_t seuser=system_u
tags:
- fedora-web
- name: Copy over the Fedora Server CA cert
copy: src="{{ private }}/files/fedora-ca.cert" dest=/etc/pki/httpd/fedora-server-ca.cert
owner=root group=root mode=0644
notify:
- reload proxyhttpd
tags:
- fedora-web
- fedora-web/registry
- name: Copy in the sync-registry-index cronjob
template: src=cron-sync-registry-index dest=/etc/cron.d/sync-registry-index
tags:
- fedora-web
- fedora-web/registry
- name: Copy over the registry CA
copy: src="{{private}}/files/docker-registry/{{env}}/pki/ca.crt"
dest="/etc/pki/httpd/registry-ca-{{env}}.cert"
owner=root group=root mode=0644
notify:
- reload proxyhttpd
tags:
- fedora-web
- fedora-web/registry
- name: Copy over the registry passwd
copy: src="passwd-{{env}}" dest=/etc/httpd/conf.d/registry.fedoraproject.org/passwd
owner=root group=root mode=0644
notify:
- reload proxyhttpd
tags:
- fedora-web
- fedora-web/registry