diff --git a/tasks/install.xenial.yml b/tasks/install.xenial.yml new file mode 100644 index 0000000..55716f0 --- /dev/null +++ b/tasks/install.xenial.yml @@ -0,0 +1,4 @@ +- name: install systemd service + copy: + src=mongod.service + dest=/etc/systemd/system/mongod.service diff --git a/tasks/mongodb.yml b/tasks/mongodb.yml index eacea05..dca8a7e 100644 --- a/tasks/mongodb.yml +++ b/tasks/mongodb.yml @@ -13,6 +13,9 @@ - include: install.deb.yml when: ansible_os_family == 'Debian' and mongodb_install +- include: install.xenial.yml + when: ansible_os_family == 'Debian' and ansible_distribution_release == 'xenial' + - include: configure.yml when: mongodb_install