role_k8s_home-assistant_deploy/tasks/main.yml

44 lines
1.2 KiB
YAML

---
#####################################################################
#
# home-assistant_deploy role
#
# - requires that the 'devpath' variable be set
#
#####################################################################
# tasks file for home-assistant_deploy role
- debug: msg="Deploying home-assistant app."
- name: Create the home-automation namespace
community.kubernetes.k8s:
name: home-automation
api_version: v1
kind: Namespace
state: present
- name: Create the PV object
community.kubernetes.k8s:
state: present
src: "{{ devpath }}/k8s/home-automation/home-assistant/home-assistant_pv.yml"
- name: Create the PVC object
community.kubernetes.k8s:
state: present
namespace: home-automation
src: "{{ devpath }}/k8s/home-automation/home-assistant/home-assistant_pvc.yml"
- name: Create the deployment object
community.kubernetes.k8s:
state: present
namespace: home-automation
src: "{{ devpath }}/k8s/home-automation/home-assistant/home-assistant_deployment.yml"
- name: Create the svclb object
community.kubernetes.k8s:
state: present
namespace: home-automation
src: "{{ devpath }}/k8s/home-automation/home-assistant/home-assistant_svclb.yml"
# EOF