mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +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
|
home: /var/lib/mongodb
|
||||||
shell: /usr/sbin/nologin
|
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
|
# end block
|
||||||
when: not (ansible_architecture == "amd64") or not (ansible_architecture == "aarch64")
|
when: not (ansible_architecture == "amd64") or not (ansible_architecture == "aarch64")
|
||||||
|
|
||||||
|
@ -138,7 +149,7 @@
|
||||||
- /var/log/mongodb
|
- /var/log/mongodb
|
||||||
- "{{ mongodb_db_path }}" # i.e. /library/dbdata/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:
|
template:
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
|
@ -146,7 +157,6 @@
|
||||||
group: root
|
group: root
|
||||||
mode: "{{ item.mode }}"
|
mode: "{{ item.mode }}"
|
||||||
with_items:
|
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: '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' }
|
- { src: 'iiab-mongodb-repair-if-no-lock.j2', dest: '/usr/bin/iiab-mongodb-repair-if-no-lock', mode: '0755' }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue