From 4a15dfc0936052ce1f22cfa69a5dff949d153d8b Mon Sep 17 00:00:00 2001 From: nazunalika Date: Sun, 20 Dec 2020 22:34:55 -0700 Subject: [PATCH] Adding in missing adhoc playbook --- ansible/playbooks/adhoc-ipaservice.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ansible/playbooks/adhoc-ipaservice.yml diff --git a/ansible/playbooks/adhoc-ipaservice.yml b/ansible/playbooks/adhoc-ipaservice.yml new file mode 100644 index 0000000..45af9a1 --- /dev/null +++ b/ansible/playbooks/adhoc-ipaservice.yml @@ -0,0 +1,26 @@ +--- +# This playbook is meant to be used with callable variables, like adhoc or AWX. +# What: Creates kerberos services in the idm infrastructure based on the variables provided + +- name: Create Services + hosts: ipaserver + become: false + gather_facts: false + vars_files: + - vars/encpass.yml + + tasks: + - name: "Checking for user variables" + assert: + that: + - ipaadmin_password | mandatory + - ipaService | mandatory + success_msg: "Required variables provided" + fail_msg: "We are missing required information" + + - name: "Creating Kerberos Service" + freeipa.ansible_freeipa.ipaservice: + ipaadmin_password: "{{ ipaadmin_password }}" + name: "{{ ipaService }}" + tags: + - services