-
-
Save michaeljs1990/521ab5d56b2ae96cdd40 to your computer and use it in GitHub Desktop.
Ansible
This file contains hidden or 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
# Directory structure | |
playbook.yml | |
inventory_file | |
ansible-rabbitmq/ | |
# command run ansible-playbook playbook.yml -i vagrant | |
# ansible-rabbitmq is this repo https://github.com/nowait-tools/ansible-rabbitmq/tree/galaxy-test | |
# using galaxy test branch for testing |
This file contains hidden or 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
| => ansible-playbook playbook.yml -i vagrant | |
PLAY [install rabbitmq] ******************************************************* | |
GATHERING FACTS *************************************************************** | |
ok: [default] | |
TASK: [ansible-rabbitmq | add rabbitmq key (Debian)] ************************** | |
changed: [default] | |
TASK: [ansible-rabbitmq | add rabbitmq repo (Debian)] ************************* | |
changed: [default] | |
TASK: [ansible-rabbitmq | install packages] *********************************** | |
changed: [default] | |
TASK: [ansible-rabbitmq | shutdown rabbitmq to change cookie and conf file] *** | |
changed: [default] | |
TASK: [ansible-rabbitmq | ensure cookies are the same between all envs] ******* | |
changed: [default] | |
TASK: [ansible-rabbitmq | get server hostnames in cluster] ******************** | |
fatal: [default] => Failed to template {{ lookup('find_by_tag', 'key=Name value=rabbitmq').split(',') }}: lookup plugin (find_by_tag) not found | |
FATAL: all hosts have already failed -- aborting | |
PLAY RECAP ******************************************************************** | |
to retry, use: --limit @/Users/mschuett/playbook.retry | |
default : ok=6 changed=5 unreachable=1 failed=0 |
This file contains hidden or 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
--- | |
- name: install rabbitmq | |
hosts: all | |
gather_facts: yes | |
sudo: yes | |
vars: | |
rabbitmq_cluster: true | |
roles: | |
- ansible-rabbitmq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment