From a263a69b28816ce399818b561822f523f6ef6d3e Mon Sep 17 00:00:00 2001 From: Lossos <1607884+lossos@users.noreply.github.com> Date: Fri, 5 Jun 2020 10:10:15 +0200 Subject: [PATCH] Some dependencies (e.g. gnupg2) need to be installed before MongoDB Moved dependency installation before mongodb installation --- tasks/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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