summaryrefslogtreecommitdiffstats
path: root/ansible/roles/rancher/tasks/rancher_agent.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/rancher/tasks/rancher_agent.yml')
-rw-r--r--ansible/roles/rancher/tasks/rancher_agent.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/ansible/roles/rancher/tasks/rancher_agent.yml b/ansible/roles/rancher/tasks/rancher_agent.yml
index 73d9a642..e54d760e 100644
--- a/ansible/roles/rancher/tasks/rancher_agent.yml
+++ b/ansible/roles/rancher/tasks/rancher_agent.yml
@@ -4,6 +4,8 @@
name: rancher_agent
image: "{{ server_hostvars.rancher_agent_image }}"
command: "{{ server_hostvars.rancher_agent_reg_url }}"
+ env:
+ CATTLE_AGENT_IP: "{{ cluster_ip }}"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "/var/lib/rancher:/var/lib/rancher"