Files
fedora-infra_ansible/roles/openshift-apps/dist-git/tasks/create-postgres-operator-config.yaml
David Kirwan 3d2ce0e251 forgejo: replace instances of forgejo
- correct typo for distgit across role

Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
2025-12-08 17:11:27 +00:00

27 lines
868 B
YAML

---
- name: Generate the postgres-cluster.yaml from template
ansible.builtin.template:
src: "postgres-cluster.yaml.j2"
dest: "/root/ocp4/openshift-apps/dist-git/postgres-cluster.yaml"
mode: "0770"
- name: Generate the postgres-secret.yaml from template
ansible.builtin.template:
src: "postgres-secret.yaml.j2"
dest: "/root/ocp4/openshift-apps/dist-git/postgres-secret.yaml"
mode: "0770"
- name: Deploy the postgres-cluster.yaml config
kubernetes.core.k8s:
state: present
src: "/root/ocp4/openshift-apps/dist-git/postgres-cluster.yaml"
- name: Deploy the postgres-secret.yaml secret
kubernetes.core.k8s:
state: present
src: "/root/ocp4/openshift-apps/dist-git/postgres-secret.yaml"
- name: Sleep for 30 seconds, allow postgresql time to come up and then continue with play
ansible.builtin.wait_for:
timeout: 30