role_k8s_notes-wiki_deploy/tasks/main.yml

56 lines
1.4 KiB
YAML

---
#####################################################################
#
# notes-wiki_deploy role
#
# - requires that the 'devpath' variable be set
#
#####################################################################
# tasks file for notes-wiki_deploy role
- debug: msg="Deploying notes-wiki app."
- name: Create the tiddlywiki namespace
kubernetes.core.k8s:
name: tiddlywiki
api_version: v1
kind: Namespace
state: present
- name: Create the PV object
kubernetes.core.k8s:
state: present
src: "{{ devpath }}/k8s_notes-wiki/notes-wiki_pv.yml"
- name: Create the PVC object
kubernetes.core.k8s:
state: present
namespace: tiddlywiki
src: "{{ devpath }}/k8s_notes-wiki/notes-wiki_pvc.yml"
- name: Create the Secrets object
kubernetes.core.k8s:
state: present
namespace: tiddlywiki
src: "{{ devpath }}/k8s_notes-wiki/notes-wiki_secret.yml"
- name: Create the deployment object
kubernetes.core.k8s:
state: present
namespace: tiddlywiki
src: "{{ devpath }}/k8s_notes-wiki/notes-wiki_deployment.yml"
- name: Create the service object
kubernetes.core.k8s:
state: present
namespace: tiddlywiki
src: "{{ devpath }}/k8s_notes-wiki/notes-wiki_service.yml"
- name: Create the ingress object
kubernetes.core.k8s:
state: present
namespace: tiddlywiki
src: "{{ devpath }}/k8s_notes-wiki/notes-wiki_ingress.yml"
# EOF