blob: e54d760e06fd71bb81f569b10483a19dc80d3d75 [file] [log] [blame]
Michal Ptacek89134622018-12-19 12:10:34 +00001---
2- name: Add Rancher Agent
3 docker_container:
4 name: rancher_agent
5 image: "{{ server_hostvars.rancher_agent_image }}"
6 command: "{{ server_hostvars.rancher_agent_reg_url }}"
Michal Zegan0ca158b2019-06-19 14:41:38 +02007 env:
8 CATTLE_AGENT_IP: "{{ cluster_ip }}"
Michal Ptacek89134622018-12-19 12:10:34 +00009 volumes:
10 - "/var/run/docker.sock:/var/run/docker.sock"
11 - "/var/lib/rancher:/var/lib/rancher"
Samuli Silviusc580efe2019-03-17 18:06:33 +020012 privileged: true
Michal Ptacek89134622018-12-19 12:10:34 +000013 vars:
14 server_hostvars: "{{ hostvars[groups.infrastructure.0] }}"