initial checkin

This commit is contained in:
Radar231 2021-09-25 20:35:53 -04:00
commit 8d922eb9f8
3 changed files with 72 additions and 0 deletions

8
README.md Normal file
View File

@ -0,0 +1,8 @@
# Ansible Role: k8s_journal-wiki_deploy
## Introduction
This role will deploy the journal-wiki application.
This role requires that the 'devpath' variable be set.

9
meta/main.yml Normal file
View File

@ -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

55
tasks/main.yml Normal file
View File

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