4c9cb8dd01763a5ecc607547398b5368a3f0b2aa
[oom/offline-installer.git] / ansible / roles / rancher / tasks / rancher_agent.yml
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"
10     auto_remove: yes
11     privileged: yes
12   vars:
13     server_hostvars: "{{ hostvars[groups.infrastructure.0] }}"