mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-11 10:32:27 +08:00
forgejo: Create postgresql operator config and secret
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
---
|
||||
- name: Generate the postgres-cluster.yaml from template
|
||||
ansible.builtin.template:
|
||||
src: "postgres-cluster.yaml.j2"
|
||||
dest: "/root/ocp4/openshift-apps/forgejo/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/forgejo/postgres-secret.yaml"
|
||||
mode: "0770"
|
||||
|
||||
- name: Deploy the postgres-cluster.yaml config
|
||||
kubernetes.core.k8s:
|
||||
state: present
|
||||
src: "/root/ocp4/openshift-apps/forgejo/postgres-cluster.yaml"
|
||||
|
||||
- name: Deploy the postgres-secret.yaml secret
|
||||
kubernetes.core.k8s:
|
||||
state: present
|
||||
src: "/root/ocp4/openshift-apps/forgejo/postgres-secret.yaml"
|
||||
@@ -5,3 +5,4 @@
|
||||
state: directory
|
||||
|
||||
- include_tasks: call-helm.yml
|
||||
- include_tasks: create-postgres-operator-config.yml
|
||||
|
||||
Reference in New Issue
Block a user