Skip to content

Commit

Permalink
Some dependencies (e.g. gnupg2) need to be installed before MongoDB
Browse files Browse the repository at this point in the history
Moved dependency installation before mongodb installation
  • Loading branch information
lossos committed Jun 5, 2020
1 parent 59adcc1 commit a263a69
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}"
Expand All @@ -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:
Expand All @@ -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

Expand Down

0 comments on commit a263a69

Please sign in to comment.