forked from CCCHH/ansible-infra
		
	
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			435 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			435 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| - name: Install ola
 | |
|   ansible.builtin.apt:
 | |
|     name: ola
 | |
| - name: Ensure all given configuraton files are deployed
 | |
|   ansible.builtin.copy:
 | |
|     content: "{{ item.content }}"
 | |
|     dest: /etc/ola/{{ item.name }}.conf
 | |
|     mode: 0644
 | |
|     owner: olad
 | |
|     group: olad
 | |
|   loop: "{{ ola__configs }}"
 | |
|   notify: Restart olad
 | |
| - name: Enable and start ola service
 | |
|   ansible.builtin.systemd:
 | |
|     name: olad.service
 | |
|     state: started
 | |
|     enabled: true
 |