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