mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
don't use mongdb.conf from template with apt version
This commit is contained in:
parent
492c544010
commit
dd07064648
1 changed files with 12 additions and 2 deletions
|
@ -47,6 +47,17 @@
|
|||
home: /var/lib/mongodb
|
||||
shell: /usr/sbin/nologin
|
||||
|
||||
- name: Install /etc/mongod.conf from template
|
||||
template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "{{ item.mode }}"
|
||||
with_items:
|
||||
- { src: 'mongod.conf.j2', dest: "{{ mongodb_conf }}", mode: '0644' } # i.e. /etc/mongod.conf
|
||||
|
||||
|
||||
# end block
|
||||
when: not (ansible_architecture == "amd64") or not (ansible_architecture == "aarch64")
|
||||
|
||||
|
@ -138,7 +149,7 @@
|
|||
- /var/log/mongodb
|
||||
- "{{ mongodb_db_path }}" # i.e. /library/dbdata/mongodb/
|
||||
|
||||
- name: Install /etc/mongod.conf, mongodb.service, /usr/bin/iiab-mongodb-repair-if-no-lock from templates
|
||||
- name: Install mongodb.service, /usr/bin/iiab-mongodb-repair-if-no-lock from templates
|
||||
template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
|
@ -146,7 +157,6 @@
|
|||
group: root
|
||||
mode: "{{ item.mode }}"
|
||||
with_items:
|
||||
- { src: 'mongod.conf.j2', dest: "{{ mongodb_conf }}", mode: '0644' } # i.e. /etc/mongod.conf
|
||||
- { src: 'mongodb.service.j2', dest: '/etc/systemd/system/mongodb.service', mode: '0644' }
|
||||
- { src: 'iiab-mongodb-repair-if-no-lock.j2', dest: '/usr/bin/iiab-mongodb-repair-if-no-lock', mode: '0755' }
|
||||
|
||||
|
|
Loading…
Reference in a new issue