Files
fedora-infra_ansible/roles/openshift-apps/forgejo/tasks/create-oadp-dataprotectionapplication-config.yml
2025-06-23 17:34:38 +01:00

27 lines
974 B
YAML

---
- name: Generate the forgejo-dataprotectionapplication.yaml from template
ansible.builtin.template:
src: "forgejo-dataprotectionapplication.yaml.j2"
dest: "/root/ocp4/openshift-apps/forgejo/forgejo-dataprotectionapplication.yaml"
mode: "0770"
- name: Generate the forgejo-oadp-secret.yaml from template
ansible.builtin.template:
src: "forgejo-oadp-secret.yaml.j2"
dest: "/root/ocp4/openshift-apps/forgejo/forgejo-oadp-secret.yaml"
mode: "0770"
- name: Deploy the forgejo-dataprotectionapplication.yaml config
kubernetes.core.k8s:
state: present
src: "/root/ocp4/openshift-apps/forgejo/forgejo-dataprotectionapplication.yaml"
- name: Deploy the forgejo-oadp-secret.yaml secret
kubernetes.core.k8s:
state: present
src: "/root/ocp4/openshift-apps/forgejo/forgejo-oadp-secret.yaml"
- name: Sleep for 30 seconds, allow the OADP operator time to reconcile then continue with play
ansible.builtin.wait_for:
timeout: 30