diff --git a/ansible/inventories/production/group_vars/rabbitmq/main.yml b/ansible/inventories/production/group_vars/rabbitmq/main.yml index 15ef793..16dd22f 100644 --- a/ansible/inventories/production/group_vars/rabbitmq/main.yml +++ b/ansible/inventories/production/group_vars/rabbitmq/main.yml @@ -1,5 +1,5 @@ --- # RabbitMQ Staging Vars -rabbitmq_cluster_name: "rabbitprod" +rabbitmq_cluster_name: "rabbit" rabbitmq_cluster_list: "{{ groups['rabbitmq'] }}" rabbitmq_env: "production" diff --git a/ansible/inventories/staging/group_vars/rabbitmq/main.yml b/ansible/inventories/staging/group_vars/rabbitmq/main.yml index 035c0fa..efe73c5 100644 --- a/ansible/inventories/staging/group_vars/rabbitmq/main.yml +++ b/ansible/inventories/staging/group_vars/rabbitmq/main.yml @@ -1,5 +1,5 @@ --- # RabbitMQ Staging Vars -rabbitmq_cluster_name: "rabbitstage" +rabbitmq_cluster_name: "rabbit" rabbitmq_cluster_list: "{{ groups['rabbitmq'] }}" rabbitmq_env: "staging" diff --git a/ansible/playbooks/adhoc-ipauser-disable.yml b/ansible/playbooks/adhoc-ipauser-disable.yml new file mode 100644 index 0000000..956f695 --- /dev/null +++ b/ansible/playbooks/adhoc-ipauser-disable.yml @@ -0,0 +1,29 @@ +--- +# This playbook is meant to be used with callable variables, like adhoc or AWX. +# What: Creates users in the idm infrastructure based on the variables provided. + +- name: Create a User + hosts: ipaserver + become: false + gather_facts: false + vars_files: + - vars/vaults/encpass.yml + + tasks: + - name: "Checking for user variables" + assert: + that: + - ipa_admin | mandatory + - ipaadmin_password | mandatory + - ipa_name | mandatory + success_msg: "Required variables provided" + fail_msg: "We are missing user information or ipa admin password" + + - name: "Creating User Account" + freeipa.ansible_freeipa.ipauser: + ipaadmin_principal: "{{ ipa_admin }}" + ipaadmin_password: "{{ ipaadmin_password }}" + name: "{{ ipa_name }}" + state: disabled + tags: + - users diff --git a/ansible/playbooks/adhoc-ipauser-enable.yml b/ansible/playbooks/adhoc-ipauser-enable.yml new file mode 100644 index 0000000..4bf1ad1 --- /dev/null +++ b/ansible/playbooks/adhoc-ipauser-enable.yml @@ -0,0 +1,29 @@ +--- +# This playbook is meant to be used with callable variables, like adhoc or AWX. +# What: Creates users in the idm infrastructure based on the variables provided. + +- name: Create a User + hosts: ipaserver + become: false + gather_facts: false + vars_files: + - vars/vaults/encpass.yml + + tasks: + - name: "Checking for user variables" + assert: + that: + - ipa_admin | mandatory + - ipaadmin_password | mandatory + - ipa_name | mandatory + success_msg: "Required variables provided" + fail_msg: "We are missing user information or ipa admin password" + + - name: "Creating User Account" + freeipa.ansible_freeipa.ipauser: + ipaadmin_principal: "{{ ipa_admin }}" + ipaadmin_password: "{{ ipaadmin_password }}" + name: "{{ ipa_name }}" + state: enabled + tags: + - users diff --git a/ansible/playbooks/role-rocky-rabbitmq.yml b/ansible/playbooks/role-rocky-rabbitmq.yml index e837a1a..8fd9985 100644 --- a/ansible/playbooks/role-rocky-rabbitmq.yml +++ b/ansible/playbooks/role-rocky-rabbitmq.yml @@ -54,7 +54,7 @@ # rocky-release-rabbitmq repo - name: Install centos rabbitmq yum: - name: centos-release-rabbitmq + name: centos-release-rabbitmq-38 state: present tags: - packages