blob: 73d9a6424e798556fffab1cf650dadbd07fe56c4 [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 }}"
7 volumes:
8 - "/var/run/docker.sock:/var/run/docker.sock"
9 - "/var/lib/rancher:/var/lib/rancher"
Samuli Silviusc580efe2019-03-17 18:06:33 +020010 privileged: true
Michal Ptacek89134622018-12-19 12:10:34 +000011 vars:
12 server_hostvars: "{{ hostvars[groups.infrastructure.0] }}"