diff options
author | Michal Ptacek <m.ptacek@partner.samsung.com> | 2018-12-19 12:10:34 +0000 |
---|---|---|
committer | Michal Ptacek <m.ptacek@partner.samsung.com> | 2018-12-19 12:10:34 +0000 |
commit | 8913462c5d9745a3d2414eece806f1fbfa310a4c (patch) | |
tree | 6acf54c22ba30212ecd22ab02568d2531cc94cf9 /ansible/roles/rancher/tasks/rancher_agent.yml | |
parent | d21977bd82508b90c8bfda24111ac4a693256e70 (diff) |
Adding rancher role
In kubernetes cluster configuration we still use rancher tool,
this ansible role is providing handling for both rancher server
and agent.
Change-Id: I508a42a98902788b940b06cf95009a899c50a3b8
Issue-ID: OOM-1551
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
Diffstat (limited to 'ansible/roles/rancher/tasks/rancher_agent.yml')
-rw-r--r-- | ansible/roles/rancher/tasks/rancher_agent.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ansible/roles/rancher/tasks/rancher_agent.yml b/ansible/roles/rancher/tasks/rancher_agent.yml new file mode 100644 index 00000000..4c9cb8dd --- /dev/null +++ b/ansible/roles/rancher/tasks/rancher_agent.yml @@ -0,0 +1,13 @@ +--- +- name: Add Rancher Agent + docker_container: + name: rancher_agent + image: "{{ server_hostvars.rancher_agent_image }}" + command: "{{ server_hostvars.rancher_agent_reg_url }}" + volumes: + - "/var/run/docker.sock:/var/run/docker.sock" + - "/var/lib/rancher:/var/lib/rancher" + auto_remove: yes + privileged: yes + vars: + server_hostvars: "{{ hostvars[groups.infrastructure.0] }}" |