forked from tmichett/quay_lab_poc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Quay_Deploy.yml_old_version
35 lines (31 loc) · 1.08 KB
/
Quay_Deploy.yml_old_version
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
---
- 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
- name: Start the Quay Container
podman_container:
name: quay
image: registry.redhat.io/quay/quay-rhel8:v3.5.1
state: started
restart: yes
ports:
- "8080:8080"
volume:
- "{{ QUAY_DIR }}/config:/conf/stack:Z"
- "{{ QUAY_DIR }}/storage:/datastorage:Z"