mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
hide the enabled=no statement in install.yml
This commit is contained in:
parent
bc9529c8de
commit
19b6dd4c71
2 changed files with 10 additions and 10 deletions
|
@ -169,6 +169,14 @@
|
||||||
- { 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' }
|
||||||
|
|
||||||
|
# daemon_reload is used to force systemd to recognize a newly installed .service file
|
||||||
|
# restarted here to ensure the port has been changed
|
||||||
|
- name: Disable 'mongodb' systemd service - started on demand by sugarizer
|
||||||
|
systemd:
|
||||||
|
name: mongodb
|
||||||
|
daemon_reload: yes
|
||||||
|
enabled: no
|
||||||
|
state: restarted
|
||||||
|
|
||||||
# 3. RECORD MongoDB AS INSTALLED
|
# 3. RECORD MongoDB AS INSTALLED
|
||||||
|
|
||||||
|
|
|
@ -2,23 +2,15 @@
|
||||||
include_tasks: install.yml
|
include_tasks: install.yml
|
||||||
when: mongodb_installed is undefined
|
when: mongodb_installed is undefined
|
||||||
|
|
||||||
# daemon_reload is used to force systemd to recognize a newly installed .service file
|
|
||||||
- name: Restart 'mongodb' systemd service if mongodb_enabled
|
|
||||||
systemd:
|
|
||||||
name: mongodb
|
|
||||||
daemon_reload: yes
|
|
||||||
enabled: no
|
|
||||||
state: restarted
|
|
||||||
when: mongodb_enabled | bool
|
|
||||||
|
|
||||||
- name: Disable & Stop 'mongodb' service, if not mongodb_enabled
|
- name: Disable & Stop 'mongodb' service, if not mongodb_enabled
|
||||||
systemd:
|
systemd:
|
||||||
name: mongodb
|
name: mongodb
|
||||||
daemon_reload: yes
|
|
||||||
enabled: no
|
enabled: no
|
||||||
state: stopped
|
state: stopped
|
||||||
when: not mongodb_enabled
|
when: not mongodb_enabled
|
||||||
|
|
||||||
|
#'mongodb' systemd service - started on demand by sugarizer
|
||||||
|
# Just recording that mongodb should be running
|
||||||
|
|
||||||
- name: Add 'mongodb' variable values to {{ iiab_ini_file }}
|
- name: Add 'mongodb' variable values to {{ iiab_ini_file }}
|
||||||
ini_file:
|
ini_file:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue