initial checkin

This commit is contained in:
Radar231 2024-03-22 18:57:35 -04:00
commit ee3e5b7232
3 changed files with 66 additions and 0 deletions

8
README.md Normal file
View File

@ -0,0 +1,8 @@
# Ansible Role: k8s_delfax-net_deploy
## Introduction
This role will deploy the delfax.net nginx website.
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

49
tasks/main.yml Normal file
View File

@ -0,0 +1,49 @@
---
#####################################################################
#
# delfax-net_deploy role
#
# - requires that the 'devpath' variable be set
#
#####################################################################
# tasks file for delfax-net_deploy role
- debug: msg="Deploying delfax-net app."
- name: Create the delfax namespace
kubernetes.core.k8s:
name: delfax
api_version: v1
kind: Namespace
state: present
- name: Create the PV object
kubernetes.core.k8s:
state: present
src: "{{ devpath }}/k8s_delfax-net/delfax-net_pv.yml"
- name: Create the PVC object
kubernetes.core.k8s:
state: present
namespace: delfax
src: "{{ devpath }}/k8s_delfax-net/delfax-net_pvc.yml"
- name: Create the deployment object
kubernetes.core.k8s:
state: present
namespace: delfax
src: "{{ devpath }}/k8s_delfax-net/delfax-net_deployment.yml"
- name: Create the service object
kubernetes.core.k8s:
state: present
namespace: delfax
src: "{{ devpath }}/k8s_delfax-net/delfax-net_service.yml"
- name: Create the ingress object
kubernetes.core.k8s:
state: present
namespace: delfax
src: "{{ devpath }}/k8s_delfax-net/delfax-net_ingress.yml"
# EOF