Ansible regexp that will change only found string instead of whole line – Docker
I'm trying to setup playbook that will setup some docker services. I'm trying to pass some variables that are obtained by vars_prompt to docker-compose file. replace: path: files/docker-compose.yaml regexp: 'SERVER_IP' replace: '{{ ip_address }}' Destination file environment: (...) SERVER_IP: 'SERVICE_IP_ADDR'…