commit adf1eba4a65520ccbd4c0962a0aeaedb623dedd1 Author: Radar231 Date: Fri Jul 23 18:43:52 2021 -0400 initial checkin diff --git a/README.md b/README.md new file mode 100644 index 0000000..a748aa5 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# Ansible Role: k8s_delinit_deploy + +## Introduction + +This role will deploy the delinit kubernetes application. + +This role requires that the 'devpath' variable be set. + diff --git a/meta/main.yml b/meta/main.yml new file mode 100644 index 0000000..eb37897 --- /dev/null +++ b/meta/main.yml @@ -0,0 +1,9 @@ +galaxy_info: + author: radar231 + + license: license (GPL-2.0-or-later, MIT, etc) + min_ansible_version: 2.1 + galaxy_tags: [] +dependencies: [] + +# EOF diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..dd9560f --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,43 @@ +--- +##################################################################### +# +# 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