role_k8s_home-assistant_deploy/tasks/main.yml

44 lines
1.1 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
kubernetes.core.k8s:
name: home-automation
api_version: v1
kind: Namespace
state: present
- name: Create the PV object
kubernetes.core.k8s:
state: present
src: "{{ devpath }}/k8s_home-assistant/home-assistant_pv.yml"
- name: Create the PVC object
kubernetes.core.k8s:
state: present
namespace: home-automation
src: "{{ devpath }}/k8s_home-assistant/home-assistant_pvc.yml"
- name: Create the deployment object
kubernetes.core.k8s:
state: present
namespace: home-automation
src: "{{ devpath }}/k8s_home-assistant/home-assistant_deployment.yml"
- name: Create the load-balancer object
kubernetes.core.k8s:
state: present
namespace: home-automation
src: "{{ devpath }}/k8s_home-assistant/home-assistant_lb.yml"
# EOF