diff --git a/tasks/install_zypper.yml b/tasks/install_zypper.yml index d9a5a0df..9900260e 100644 --- a/tasks/install_zypper.yml +++ b/tasks/install_zypper.yml @@ -95,7 +95,8 @@ - rabbitmq-config - name: Reload the systemd daemon - command: "systemctl daemon-reload" + systemd: + daemon_reload: yes when: - rabbitmq_server_service_added | changed tags: diff --git a/tasks/rabbitmq_install.yml b/tasks/rabbitmq_install.yml index bd4e9180..5a9a4230 100644 --- a/tasks/rabbitmq_install.yml +++ b/tasks/rabbitmq_install.yml @@ -22,17 +22,15 @@ - rabbitmq_server-install - name: Reload the systemd daemon - command: "systemctl daemon-reload" + systemd: + daemon_reload: yes when: - install_rabbitmq | changed - - ansible_service_mgr == 'systemd' tags: - rabbitmq-apt-packages - rabbitmq-yum-packages - rabbimtq-zypper-packages - rabbitmq_server-install - # Avoid ANSIBLE0006 systemctl used in place of systemd module issue - - skip_ansible_lint - name: Ensure there are no policy-rc files file: diff --git a/tasks/rabbitmq_post_install.yml b/tasks/rabbitmq_post_install.yml index 2f0ed832..a9a7bba0 100644 --- a/tasks/rabbitmq_post_install.yml +++ b/tasks/rabbitmq_post_install.yml @@ -80,7 +80,8 @@ - rabbitmq-config - name: Reload the systemd daemon - command: "systemctl daemon-reload" + systemd: + daemon_reload: yes when: - ansible_service_mgr == 'systemd' - rabbit_resource_limit | changed