This commit is contained in:
		
					parent
					
						
							
								3548c1f4d6
							
						
					
				
			
			
				commit
				
					
						456117a789
					
				
			
		
					 9 changed files with 205 additions and 0 deletions
				
			
		|  | @ -131,6 +131,20 @@ | |||
|     label: "{{ item.name }}" | ||||
|   notify: Restart nginx | ||||
| 
 | ||||
| - name: Ensure all given htpasswd files are deployed | ||||
|   when: nginx__deploy_htpasswds | ||||
|   ansible.builtin.copy: | ||||
|     content: "{{ item.content }}" | ||||
|     dest: "/etc/nginx/{{ item.name }}.htpasswd" | ||||
|     mode: "0644" | ||||
|     owner: root | ||||
|     group: root | ||||
|   become: true | ||||
|   loop: "{{ nginx__htpasswds }}" | ||||
|   loop_control: | ||||
|     label: "{{ item.name }}" | ||||
|   notify: Restart nginx | ||||
| 
 | ||||
| - name: Add names with suffixes from `nginx__configurations` to `nginx__config_files_to_exist` fact | ||||
|   ansible.builtin.set_fact: | ||||
|     nginx__config_files_to_exist: "{{ nginx__config_files_to_exist + [ item.name + '.conf' ] }}"  # noqa: jinja[spacing] | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue