forked from tmichett/quay_lab_poc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Quay_Mirror_Deploy.yml
34 lines (29 loc) · 1.01 KB
/
Quay_Mirror_Deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
- name: Deploy Quay Mirror
hosts: quay
vars:
QUAY_DIR: /quay
vars_files:
- registry_login.yml
collections:
- containers.podman
### Tasks for this playbook will setup a Quay Container Registry
### This will setup and configure a non-production registry
### based on https://access.redhat.com/documentation/en-us/red_hat_quay/3.5/html/deploy_red_hat_quay_for_proof-of-concept_non-production_purposes/getting_started_with_red_hat_quay#registry_authentication
tasks:
## Podman Collections Needed for Login
- name: Login to Container Registry
podman_login:
username: "{{ registry_un }}"
password: "{{ registry_pass }}"
registry: "{{ registry_url }}"
## Start and Run the Quay Container
- name: Start the Quay Container
podman_container:
name: mirroring-worker
image: registry.redhat.io/quay/quay-rhel8:v3.6.0-62
state: started
restart: yes
volume:
- "{{ QUAY_DIR }}/config:/conf/stack:Z"
command: repomirror