mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			312 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			312 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
- name: Enable & (Re)Start 'mongodb.service' if mongodb_enabled
 | 
						|
  systemd:
 | 
						|
    name: mongodb
 | 
						|
    enabled: yes
 | 
						|
    state: restarted
 | 
						|
  when: mongodb_enabled
 | 
						|
 | 
						|
- name: Disable & Stop 'mongodb.service' if not mongodb_enabled
 | 
						|
  systemd:
 | 
						|
    name: mongodb
 | 
						|
    enabled: no
 | 
						|
    state: stopped
 | 
						|
  when: not mongodb_enabled
 |