ansible-plugin
ansible-plugin copied to clipboard
How to bind to the 0.0.0.0 address?
Hello,
Thank you so much for this image!
I want the rundeck-ansible container to bind to the 0.0.0.0 address. It looks likes the batix/rundeck-ansible image is based on the rundeck/rundeck image.
From looking at the documentation for rundeck/rundeck I found the RUNDECK_SERVER_ADDRESS environment variable:
RUNDECK_SERVER_ADDRESS=0.0.0.0 This is the address or hostname the application will attempt to bind to within the container.
This is what I've tried
I've passed this environment variable into my docker cotainer using the -e
flag with this command:
/usr/bin/docker run \
--name rundeck.service \
--network host \
-e RUNDECK_SERVER_ADDRESS=0.0.0.0 \
-e RDECK_HOST=rundeck.foo.bar.com \
-e RDECK_PORT=4440 \
-e RDECK_ADMIN_PASS=password \
-e RDECK_BASE=/opt/rundeck \
-e PROJECT_BASE=${RDECK_BASE}/projects/foobar \
-e ANSIBLE_HOST_KEY_CHECKING=False \
-v /opt/rundeck/server/data:/opt/rundeck/server/data \
-v /opt/rundeck/projects:/opt/rundeck/projects \
-v /opt/rundeck/ansible:/opt/rundeck/ansible \
-v /opt/rundeck/keys:/opt/rundeck/keys \
batix/rundeck-ansible:2.5.1
But I'm still not listening to the 0.0.0.0 address, also it looks like I'm using ipv6 instead of ipv4.
sudo netstat -netplu | column -t | grep 4440
sudo: unable to resolve host srv0
tcp6 0 0 192.168.42.10:4440 :::* LISTEN 0 286310 32328/java
I've also tried the same with RDECK_SERVER_ADDRESS environment variable which also didn't work.
What's the configuration point for changing the rundeck server address for the batix/rundeck-ansible container?