diff --git a/tasks/main.yml b/tasks/main.yml index 38ceb63..b6b16a9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -80,7 +80,7 @@ - name: "Configure /etc/hosts" lineinfile: dest: /etc/hosts - line: "{{ item.line }}" + line: "{{ item.line }}" regexp: "{{ item.regexp }}" insertafter: "{{ item.insertafter | default(omit) }}" insertbefore: "{{ item.insertbefore | default(omit) }}" @@ -99,10 +99,6 @@ backrefs: no register: hosts_change_result - - import_tasks: mongodb.yml - when: (rocket_chat_include_mongodb | bool) - tags: mongodb - - name: Redefine rocket_chat_dep_packages to add dist specific packages if needed set_fact: rocket_chat_dep_packages: @@ -127,6 +123,10 @@ retries: 2 tags: packages + - import_tasks: mongodb.yml + when: (rocket_chat_include_mongodb | bool) + tags: mongodb + - import_tasks: nodejs.yml tags: nodejs