fas2discourse: Create playbook/role

Create task to generate keytab
This commit is contained in:
David Kirwan 2022-12-21 10:09:54 +09:00
parent f78802897b
commit b33aa64cde
5 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1 @@
fas2discourse_hostname: "fas2discourse.hostna.me"

View file

@ -0,0 +1,2 @@
---
- include_tasks: create-keytab.yml

View file

@ -0,0 +1,24 @@
---
- name: Create the fas2discourse keytab path on the batcave01
file:
path: "/etc/openshift_apps/fas2discourse/"
state: directory
owner: root
group: root
mode: 0750
tags:
- create-keytab
- name: Acquire a keytab
include_role:
name: keytab/service
vars:
kt_location:
"/etc/openshift_apps/fas2discourse/fas2discourse-keytab.kt"
service: "fas2discourse"
host: "{{ fas2discourse_hostname }}"
tags:
- create-keytab

View file