Merge "Reload systemd after installing rabbitmq"
This commit is contained in:
commit
cfb253db09
@ -45,6 +45,7 @@
|
||||
- name: Install the RabbitMQ package
|
||||
apt:
|
||||
deb: "{{ rabbitmq_package_path }}"
|
||||
register: install_rabbitmq
|
||||
tags:
|
||||
- rabbitmq-package-deb
|
||||
- rabbitmq-apt-packages
|
||||
|
@ -37,6 +37,7 @@
|
||||
- name: Install the RabbitMQ package
|
||||
yum:
|
||||
name: "{{ rabbitmq_package_path }}"
|
||||
register: install_rabbitmq
|
||||
tags:
|
||||
- rabbitmq-package-rpm
|
||||
- rabbitmq-yum-packages
|
||||
|
@ -24,6 +24,18 @@
|
||||
tags:
|
||||
- always
|
||||
|
||||
- name: Check init system
|
||||
command: cat /proc/1/comm
|
||||
register: _pid1_name
|
||||
tags:
|
||||
- always
|
||||
|
||||
- name: Set the name of pid1
|
||||
set_fact:
|
||||
pid1_name: "{{ _pid1_name.stdout }}"
|
||||
tags:
|
||||
- always
|
||||
|
||||
- include: rabbitmq_pre_install.yml
|
||||
|
||||
# The install process will be skipped if `rabbitmq_ignore_version_state=true`
|
||||
|
@ -27,6 +27,15 @@
|
||||
tags:
|
||||
- rabbitmq-yum-packages
|
||||
|
||||
- name: Reload the systemd daemon
|
||||
command: "systemctl daemon-reload"
|
||||
when:
|
||||
- install_rabbitmq | changed
|
||||
- pid1_name == "systemd"
|
||||
tags:
|
||||
- rabbitmq-apt-packages
|
||||
- rabbitmq-yum-packages
|
||||
|
||||
- name: Install pip packages
|
||||
pip:
|
||||
name: "{{ item }}"
|
||||
|
Loading…
Reference in New Issue
Block a user