Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPS-5193-AWX-pvc-creation #69

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions roles/awx/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,6 @@
tags:
- awx

# Normally this PVC is created by the awx-postgres statefulset, but this prevents resizing so we create it beforehand
simoncolincap marked this conversation as resolved.
Show resolved Hide resolved
# The name must be the name that the statefulset uses to create its PVC
- name: Create AWX Postgres PVC
kubernetes.core.k8s:
state: "present"
kubeconfig: "{{ kubeconfig }}"
proxy: "{{ proxy_url | default(omit, true) }}"
proxy_headers: "{{ proxy_headers | default(omit, true) }}"
definition:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: postgres-13
namespace: "{{ awx_namespace }}"
spec:
accessModes:
- "{{ awx_postgres_storage_access_mode }}"
storageClassName: "{{ awx_postgres_storage_class }}"
resources: "{{ awx_postgres_storage_requirements }}"
tags:
- awx

- name: Install awx
kubernetes.core.k8s:
state: "present"
Expand Down