Initial commit
This commit is contained in:
Executable
+38
@@ -0,0 +1,38 @@
|
||||
---
|
||||
- name: Validate Owncast configuration
|
||||
ansible.builtin.import_tasks: validate.yml
|
||||
|
||||
- name: Create Owncast namespace
|
||||
kubernetes.core.k8s:
|
||||
state: present
|
||||
definition:
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: "{{ owncast_namespace }}"
|
||||
|
||||
- name: Create Owncast persistent volume claim
|
||||
kubernetes.core.k8s:
|
||||
state: present
|
||||
definition: "{{ lookup('ansible.builtin.template', 'pvc.yml.j2') | from_yaml }}"
|
||||
when: owncast_existing_claim | length == 0
|
||||
|
||||
- name: Deploy Owncast workload and service
|
||||
kubernetes.core.k8s:
|
||||
state: present
|
||||
definition: "{{ lookup('ansible.builtin.template', item) | from_yaml }}"
|
||||
loop:
|
||||
- deployment.yml.j2
|
||||
- service.yml.j2
|
||||
|
||||
- name: Deploy Owncast ingress
|
||||
kubernetes.core.k8s:
|
||||
state: present
|
||||
definition: "{{ lookup('ansible.builtin.template', 'ingress.yml.j2') | from_yaml }}"
|
||||
when: owncast_ingress_enabled | bool
|
||||
|
||||
- name: Deploy Owncast onion service
|
||||
kubernetes.core.k8s:
|
||||
state: present
|
||||
definition: "{{ lookup('ansible.builtin.template', 'onion.yml.j2') | from_yaml }}"
|
||||
when: owncast_onion_enabled | bool
|
||||
Reference in New Issue
Block a user