Michal Ptacek | 8913462 | 2018-12-19 12:10:34 +0000 | [diff] [blame] | 1 | --- |
| 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 Zegan | 0ca158b | 2019-06-19 14:41:38 +0200 | [diff] [blame] | 7 | env: |
| 8 | CATTLE_AGENT_IP: "{{ cluster_ip }}" |
Michal Ptacek | 8913462 | 2018-12-19 12:10:34 +0000 | [diff] [blame] | 9 | volumes: |
| 10 | - "/var/run/docker.sock:/var/run/docker.sock" |
| 11 | - "/var/lib/rancher:/var/lib/rancher" |
Samuli Silvius | c580efe | 2019-03-17 18:06:33 +0200 | [diff] [blame] | 12 | privileged: true |
Michal Ptacek | 8913462 | 2018-12-19 12:10:34 +0000 | [diff] [blame] | 13 | vars: |
| 14 | server_hostvars: "{{ hostvars[groups.infrastructure.0] }}" |