Use the community.docker.docker_compose_v2 module as it supports proper changed handling out of the box, making the roles code more straightforward and work. Also just do a docker compose restart instead of having the custom docker compose reload script. https://docs.ansible.com/ansible/latest/collections/community/docker/docker_compose_v2_module.html
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			321 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			321 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
collections:
 | 
						|
  # Install a collection from Ansible Galaxy.
 | 
						|
  - name: debops.debops
 | 
						|
    version: ">=3.1.0"
 | 
						|
    source: https://galaxy.ansible.com
 | 
						|
  - name: community.sops
 | 
						|
    version: ">=2.2.4"
 | 
						|
    source: https://galaxy.ansible.com
 | 
						|
  - name: community.docker
 | 
						|
    version: ">=5.0.0"
 | 
						|
    source: https://galaxy.ansible.com
 |