diff --git a/defaults/main.yml b/defaults/main.yml index fabdfe0..e85b420 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -5,3 +5,5 @@ onlyoffice_db_name: onlyoffice onlyoffice_ds_port: 80 database_host: "{{ onlyoffice_db_host }}" + +rabbitmq_listen_address: "127.0.0.1" diff --git a/tasks/install.yml b/tasks/install.yml index 20563e5..a63eb54 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -51,8 +51,8 @@ - onlyoffice-documentserver - ttf-mscorefonts-installer -- name: "Install | Bind RabbitMQ only to localhost" +- name: "Install | Bind RabbitMQ only to IP address" ansible.builtin.lineinfile: path: /etc/rabbitmq/rabbitmq-env.conf - line: NODE_IP_ADDRESS=127.0.0.1 + line: "NODE_IP_ADDRESS={{ rabbitmq_listen_address }}" notify: Restart RabbitMQ