-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ded7bf2
commit 949b04e
Showing
28 changed files
with
151 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
skip_list: | ||
- name[casing] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,25 @@ | ||
venv/ | ||
!* | ||
|
||
### Ansible | ||
.cache/ | ||
|
||
### VirtualEnv ### | ||
# Virtualenv | ||
.venv/ | ||
poetry.lock | ||
venv/ | ||
|
||
### VisualStudioCode ### | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
*.code-workspace | ||
|
||
# Local History for Visual Studio Code | ||
.history/ | ||
|
||
### VisualStudioCode Patch ### | ||
# Ignore all local history of files | ||
.history | ||
.ionide |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
# handlers file for ansible-rabbitmq | ||
- name: restart rabbitmq-server | ||
service: | ||
ansible.builtin.service: | ||
name: rabbitmq-server | ||
state: restarted | ||
become: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
hosts: all | ||
tasks: | ||
- name: Example assertion | ||
assert: | ||
ansible.builtin.assert: | ||
that: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
hosts: all | ||
tasks: | ||
- name: Example assertion | ||
assert: | ||
ansible.builtin.assert: | ||
that: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
hosts: all | ||
tasks: | ||
- name: Example assertion | ||
assert: | ||
ansible.builtin.assert: | ||
that: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
hosts: all | ||
tasks: | ||
- name: Example assertion | ||
assert: | ||
ansible.builtin.assert: | ||
that: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
hosts: all | ||
tasks: | ||
- name: Example assertion | ||
assert: | ||
ansible.builtin.assert: | ||
that: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
hosts: all | ||
tasks: | ||
- name: Example assertion | ||
assert: | ||
ansible.builtin.assert: | ||
that: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
- name: Prepare hosts for testing | ||
hosts: all | ||
tasks: | ||
- name: Update Apt Cache | ||
ansible.builtin.apt: | ||
update_cache: true | ||
become: true | ||
when: ansible_os_family == "Debian" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
hosts: all | ||
tasks: | ||
- name: Example assertion | ||
assert: | ||
ansible.builtin.assert: | ||
that: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
hosts: all | ||
tasks: | ||
- name: Example assertion | ||
assert: | ||
ansible.builtin.assert: | ||
that: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
hosts: all | ||
tasks: | ||
- name: Example assertion | ||
assert: | ||
ansible.builtin.assert: | ||
that: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
hosts: all | ||
tasks: | ||
- name: Example assertion | ||
assert: | ||
ansible.builtin.assert: | ||
that: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,50 @@ | ||
--- | ||
# tasks file for ansible-rabbitmq | ||
- include: debian.yml | ||
- name: Include Debian tasks | ||
ansible.builtin.include_tasks: debian.yml | ||
when: ansible_os_family == "Debian" | ||
|
||
- include: redhat.yml | ||
- name: Include RedHat tasks | ||
ansible.builtin.include_tasks: redhat.yml | ||
when: > | ||
ansible_distribution == "CentOS" or | ||
ansible_distribution == "Red Hat Enterprise Linux" or | ||
ansible_distribution == "OracleLinux" | ||
- include: fedora.yml | ||
- name: Include Fedora tasks | ||
ansible.builtin.include_tasks: fedora.yml | ||
when: ansible_distribution == "Fedora" | ||
|
||
- include: rabbitmq_plugins.yml | ||
- name: Manage RabbitMQ plugins | ||
ansible.builtin.include_tasks: rabbitmq_plugins.yml | ||
when: rabbitmq_plugins is defined | ||
|
||
- include: config.yml | ||
- name: Configure RabbitMQ | ||
ansible.builtin.include_tasks: config.yml | ||
when: rabbitmq_config_service | ||
|
||
- name: checking to see if already clustered | ||
stat: | ||
ansible.builtin.stat: | ||
path: /etc/rabbitmq/clustered | ||
become: true | ||
register: clustered | ||
|
||
- include: rabbitmq_clustering.yml | ||
- name: Manage RabbitMQ clustering | ||
ansible.builtin.include_tasks: rabbitmq_clustering.yml | ||
when: > | ||
rabbitmq_enable_clustering and | ||
not clustered['stat']['exists'] | ||
- include: rabbitmq_vhosts.yml | ||
- name: Manage RabbitMQ virtual hosts | ||
ansible.builtin.include_tasks: rabbitmq_vhosts.yml | ||
when: rabbitmq_extra_vhosts is defined | ||
|
||
- include: rabbitmq_config.yml | ||
- name: Configure RabbitMQ | ||
ansible.builtin.include_tasks: rabbitmq_config.yml | ||
when: > | ||
rabbitmq_enable_clustering and | ||
rabbitmq_config is defined | ||
- include: rabbitmq_users.yml | ||
- name: Manage RabbitMQ users | ||
ansible.builtin.include_tasks: rabbitmq_users.yml | ||
when: rabbitmq_users is defined |
Oops, something went wrong.