Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tasks/exchanges.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name: python-pip
update_cache: yes
force: yes
state: installed
state: present

# Exchanges require this library to be installed
- name: Install requests library
Expand Down
7 changes: 7 additions & 0 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@
dest: /etc/yum.repos.d/rabbitmq.repo
when: ansible_pkg_mgr == "yum"

- name: Ensure hostname is present in /etc/hosts
lineinfile:
path: /etc/hosts
regexp: "^127.0.1.1"
line: "127.0.1.1 {{ inventory_hostname }}"
state: present

- name: Install rabbitmq
package:
name: rabbitmq-server
Expand Down