mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-01 14:02:12 +08:00
Replaces many references to package: with ansible.builtin.package Signed-off-by: Ryan Lerch <rlerch@redhat.com>
42 lines
1007 B
YAML
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
|