Skip to content

Commit

Permalink
pulled images into variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathankingfc committed Apr 15, 2021
1 parent 144d0a7 commit 48b28a9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions roles/quay_installer/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
---
redis_image: docker.io/centos/redis-5-centos8
postgres_image: docker.io/centos/postgresql-10-centos8
quay_image: quay.io/projectquay/quay:latest
2 changes: 1 addition & 1 deletion roles/quay_installer/tasks/install-postgres-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

- name: Pull Postgres image
containers.podman.podman_image:
name: docker.io/centos/postgresql-10-centos8
name: "{{ postgres_image }}"

- name: Start Postgres service
systemd:
Expand Down
2 changes: 1 addition & 1 deletion roles/quay_installer/tasks/install-quay-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

- name: Pull Quay image
containers.podman.podman_image:
name: quay.io/projectquay/quay:latest
name: "{{ quay_image }}"

- name: Start Quay service
systemd:
Expand Down
4 changes: 2 additions & 2 deletions roles/quay_installer/tasks/install-redis-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
- name: Copy Redis systemd service file
template: src=../files/systemd/redis.service dest=/etc/systemd/system/quay-redis.service

- name: Pull Postgres image
- name: Pull Redis image
containers.podman.podman_image:
name: docker.io/centos/redis-5-centos8
name: "{{ redis_image }}"

- name: Start Redis service
systemd:
Expand Down

0 comments on commit 48b28a9

Please sign in to comment.