-
Notifications
You must be signed in to change notification settings - Fork 1
/
Quay_Config_Deploy_Files.yml
55 lines (46 loc) · 1.47 KB
/
Quay_Config_Deploy_Files.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
- 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:
## Prepare Config Folder
- name: Prepare Config Folder
file:
path: "{{ QUAY_DIR }}/config"
state: directory
mode: '0755'
## Extract Configuration
# - name: Extract Config File
# unarchive:
# src: files/quay-config.tar.gz ### This file gets copied from after completing the first playbook.
# dest: "{{ QUAY_DIR }}/config"
## Deploy Configuration Files
- name: Deploy Config File
copy:
src: ./files/config/config.yaml
dest: "{{ QUAY_DIR }}/config/"
owner: root
group: root
mode: '0777'
## Create Quay Storage Directory
- name: Create "{{ QUAY_DIR }}/storage" Directory
file:
path: "{{ QUAY_DIR }}/storage"
state: directory
mode: '0755'
## Set Directory ACLs
- name: Set ACL on "{{ QUAY_DIR }}/storage"
acl:
path: "{{ QUAY_DIR }}/storage"
entity: 1001
etype: user
permissions: -wx
state: present