-
Notifications
You must be signed in to change notification settings - Fork 1
/
provision-quay-registry.yml
58 lines (50 loc) · 1.6 KB
/
provision-quay-registry.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
56
57
58
---
- name: Provision Red Hat Quay registry nodes
hosts: registry
gather_facts: false
tasks:
- name: Prepare docker-ce container engine
block:
- name: Install specified docker-ce package
yum:
name: docker-ce-20.10.12-3.el7.x86_64
state: present
- name: Start and enable docker service
service:
name: docker
state: started
enabled: yes
tags:
- install-docker-ce
- name: Configure Red Hat Quay registry
block:
- name: Copy deploy-quay-registry.sh to registry node
copy:
src: files/quay/deploy-quay-registry.sh
dest: /tmp
- name: Execute deploy-quay-registry.sh to config Quay
shell: bash /tmp/deploy-quay-registry.sh config
register: config_quay_result
- name: Verify config quay result
debug:
var: config_quay_result
tags:
- config-quay
- name: Deploy Red Hat Quay registry
block:
- name: Unarchive quay-config.tar.gz
unarchive:
src: /root/quay-config.tar.gz
dest: /root
remote_src: yes
# Verify Red Hat Quay registry config file is or not exist
# If not existed, quay-master container run FAILURE!
- name: Execute deploy-quay-registry.sh to deploy Quay
shell: bash /tmp/deploy-quay-registry.sh deploy
register: deploy_quay_result
- name: Verify deploy quay result
debug:
var: deploy_quay_result
tags:
- deploy-quay
...