mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Update main.yml
This commit is contained in:
		
							parent
							
								
									2e6fe83c9e
								
							
						
					
					
						commit
						d3fed1ab2c
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -30,7 +30,7 @@
 | 
			
		|||
    - { src: 'mongod.conf.j2', dest: "{{ mongodb_conf }}" }
 | 
			
		||||
    - { src: 'mongodb.service.j2', dest: '/etc/systemd/system/mongodb.service' }
 | 
			
		||||
 | 
			
		||||
- name: Restart service if enabled, with "systemctl daemon-reload" (in case mongodb.service changed?)
 | 
			
		||||
- name: Enable+restart systemd service if mongodb_enabled, with "systemctl daemon-reload" (in case mongodb.service changed?)
 | 
			
		||||
  systemd:
 | 
			
		||||
    name: mongodb
 | 
			
		||||
    enabled: yes
 | 
			
		||||
| 
						 | 
				
			
			@ -38,7 +38,7 @@
 | 
			
		|||
    daemon_reload: yes
 | 
			
		||||
  when: mongodb_enabled
 | 
			
		||||
 | 
			
		||||
- name: Stop service if not enabled
 | 
			
		||||
- name: Disable+stop systemd service if mongodb_enabled: False
 | 
			
		||||
  systemd:
 | 
			
		||||
    name: mongodb
 | 
			
		||||
    enabled: no
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue