any.tools.caddy: switch to better module
							parent
							
								
									7f10c05cec
								
							
						
					
					
						commit
						9fdff493b2
					
				|  | @ -1,18 +1,13 @@ | |||
| - name: Add Caddy GPG key | ||||
|   ansible.builtin.get_url: | ||||
|     url: 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | ||||
|     dest: '/etc/apt/trusted.gpg.d/caddy.asc' | ||||
|     mode: '0644' | ||||
|     force: true | ||||
| 
 | ||||
| - name: Add Caddy repositories | ||||
|   apt_repository: | ||||
|     repo: "{{ item }} https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version main" | ||||
|     filename: 'caddy-stable' | ||||
|     state: present | ||||
|   with_items: | ||||
|     - deb | ||||
|     - deb-src | ||||
| - name: Add Caddy repository and key | ||||
|   ansible.builtin.deb822_repository: | ||||
|     name: 'caddy' | ||||
|     types:  | ||||
|       - deb | ||||
|       - deb-src | ||||
|     uris: 'https://dl.cloudsmith.io/public/caddy/stable/deb/debian' | ||||
|     suites: 'any-version' | ||||
|     components: 'main' | ||||
|     signed_by: 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | ||||
| 
 | ||||
| - name: Install Caddy | ||||
|   apt: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue