mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-06-14 22:36:09 +08:00
49 lines
1.7 KiB
YAML
49 lines
1.7 KiB
YAML
---
|
|
- name: Generate the forgejo-dataprotectionapplication.yaml from template
|
|
ansible.builtin.template:
|
|
src: "forgejo-oadp-dataprotectionapplication.yaml.j2"
|
|
dest: "/root/ocp4/openshift-apps/forgejo/forgejo-oadp-dataprotectionapplication.yaml"
|
|
mode: "0770"
|
|
|
|
- name: Generate the forgejo-oadp-secret.yaml from template
|
|
ansible.builtin.template:
|
|
src: "forgejo-oadp-secret.j2"
|
|
dest: "/root/ocp4/openshift-apps/forgejo/forgejo-oadp-secret.yaml"
|
|
mode: "0770"
|
|
|
|
- name: Generate the forgejo-oadp-backup.yaml from template
|
|
ansible.builtin.template:
|
|
src: "forgejo-oadp-backup.yaml.j2"
|
|
dest: "/root/ocp4/openshift-apps/forgejo/forgejo-oadp-backup.yaml"
|
|
mode: "0770"
|
|
|
|
- name: Generate the forgejo-oadp-schedule.yaml from template
|
|
ansible.builtin.template:
|
|
src: "forgejo-oadp-schedule.yaml.j2"
|
|
dest: "/root/ocp4/openshift-apps/forgejo/forgejo-oadp-schedule.yaml"
|
|
mode: "0770"
|
|
|
|
- name: Deploy the forgejo-dataprotectionapplication.yaml config
|
|
kubernetes.core.k8s:
|
|
state: present
|
|
src: "/root/ocp4/openshift-apps/forgejo/forgejo-oadp-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: Deploy the forgejo-oadp-backup.yaml secret
|
|
kubernetes.core.k8s:
|
|
state: present
|
|
src: "/root/ocp4/openshift-apps/forgejo/forgejo-oadp-backup.yaml"
|
|
|
|
- name: Deploy the forgejo-oadp-schedule.yaml secret
|
|
kubernetes.core.k8s:
|
|
state: present
|
|
src: "/root/ocp4/openshift-apps/forgejo/forgejo-oadp-schedule.yaml"
|
|
|
|
- name: Sleep for 30 seconds, allow the OADP operator time to reconcile then continue with play
|
|
ansible.builtin.wait_for:
|
|
timeout: 30
|