Files
fedora-infra_ansible/roles/push-container-registry/tasks/main.yml
Ryan Lerch 25391e95b7 ansiblelint fixes - fqcn[action-core] - package to ansible.builtin.package
Replaces many references to  package: with ansible.builtin.package

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

42 lines
1007 B
YAML

---
# tasks file for push-container-registry
# This role install skopeo and the certificates
# needed to push container images to our production registry.
# Note : push to the candidate-registry is done using docker login
# see the login-registry role.
- name: Install necessary packages
ansible.builtin.package:
name: "{{item}}"
state: present
with_items:
- skopeo
tags:
- push-container-registry
- name: Ensure cert dir exists
ansible.builtin.file:
path: "{{cert_dest_dir}}"
state: directory
tags:
- push-container-registry
- name: Install client cert for registry
ansible.builtin.copy:
src: "{{cert_src}}"
dest: "{{cert_dest_dir}}/client.cert"
owner: root
group: "{{ certs_group }}"
mode: "0640"
tags:
- push-container-registry
- name: Install client key for registry
ansible.builtin.copy:
src: "{{key_src}}"
dest: "{{cert_dest_dir}}/client.key"
group: "{{ certs_group }}"
mode: "0640"
tags:
- push-container-registry