rabbitmq: prepare for different rabbitmq clusters

This commit is contained in:
Louis Abel 2024-03-26 23:46:26 -07:00
parent 6ea0e5dd16
commit 24eb76dfc1
Signed by: label
GPG Key ID: 2A6975660E424560
8 changed files with 10 additions and 8 deletions

View File

@ -10,7 +10,7 @@
- vars/vaults/netbox.yml - vars/vaults/netbox.yml
- vars/netbox.yml - vars/netbox.yml
# This is to try to avoid the handler issue in pre/post tasks # This is to try to avoid the handler issue in pre/post tasks
handlers: handlers:
- import_tasks: handlers/main.yml - import_tasks: handlers/main.yml
@ -25,7 +25,7 @@
that: that:
- "not no_ansible.stat.exists" - "not no_ansible.stat.exists"
success_msg: "We are able to run on this node" success_msg: "We are able to run on this node"
fail_msg: "/etc/no-ansible exists - skipping run on this node" fail_msg: "/etc/no-ansible exists - skipping run on this node"
#tasks: #tasks:
#- include_tasks: tasks/efs_mount.yml #- include_tasks: tasks/efs_mount.yml

View File

@ -1,14 +1,14 @@
--- ---
# Stands up a RabbitMQ Cluster # Stands up a RabbitMQ Cluster
- name: Configure RabbitMQ - name: Configure RabbitMQ
hosts: rabbitmq hosts: rabbitmq_mbs
become: true become: true
vars_files: vars_files:
# vars/vaults/encpass.yml # vars/vaults/encpass.yml
- vars/common.yml - vars/common.yml
- vars/rabbitmq.yml - vars/rabbitmq/mbs/rabbitmq.yml
- vars/rabbitmq_vhost.yml - vars/rabbitmq/mbs/rabbitmq_vhost.yml
- vars/rabbitmq_users.yml - vars/rabbitmq/mbs/rabbitmq_users.yml
# This is to try to avoid the handler issue in pre/post tasks # This is to try to avoid the handler issue in pre/post tasks
handlers: handlers:

View File

@ -1,5 +1,7 @@
--- ---
- name: Download netbox - name: Download netbox
ansible.builtin.get_url: ansible.builtin.get_url:
url: url: "https://github.com/netbox-community/netbox/archive/refs/tags/v{{ netbox_version }}.tar.gz"
dest: "/tmp/netbox-{{ netbox_version }}"
checksum: "{{ netbox_checksum }}"
... ...

View File

@ -1,6 +1,6 @@
--- ---
netbox_version: "3.7.4" netbox_version: "3.7.4"
netbox_checksum: "" netbox_checksum: "f0c2026b81ab9785f3530eb3c59a922517630976c2af1f95eea02f8bfb9613fd"
netbox_server_name: "netbox.rockylinux.org" netbox_server_name: "netbox.rockylinux.org"
netbox_admin_name: "Infrastructure Team" netbox_admin_name: "Infrastructure Team"
netbox_admin_content: "infrastructure@rockylinux.org" netbox_admin_content: "infrastructure@rockylinux.org"