-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathQuay_Deploy.yml
36 lines (32 loc) · 1.17 KB
/
Quay_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
35
36
---
- name: Deploy Quay after Quay_Prepare.yml Playbook
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
## This is done after the configuration of QUAY for config container or config file updates
- name: Start the Quay Container
podman_container:
name: quay
image: registry.redhat.io/quay/quay-rhel8:v3.6.0-62
state: started
restart: yes
ports:
- "80:8080"
volume:
- "{{ QUAY_DIR }}/config:/conf/stack:Z"
- "{{ QUAY_DIR }}/storage:/datastorage:Z"