ansible/roles/push-container-registry/tasks/main.yml
Clement Verna 98632f0049 Rename manage-container-images and document it.
This commit renames the manage-container-images role
to push-container-registry. It also adds some doc
to describe what the role is used for.

Signed-off-by: Clement Verna <cverna@tutanota.com>
2018-08-24 11:50:56 +02:00

41 lines
936 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 push-docker role.
- name: install necessary packages
package:
name: "{{item}}"
state: present
with_items:
- skopeo
tags:
- push-container-registry
- name: ensure cert dir exists
file:
path: "{{cert_dest_dir}}"
state: directory
tags:
- push-container-registry
- name: install client cert for registry
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
copy:
src: "{{key_src}}"
dest: "{{cert_dest_dir}}/client.key"
group: "{{ certs_group }}"
mode: 0640
tags:
- push-container-registry