c12s-kubespray/roles/docker/tasks/systemd-proxies.yml

18 lines
539 B
YAML
Raw Normal View History

2016-05-10 22:49:27 +00:00
---
- name: create docker service directory for systemd
2016-05-10 22:49:27 +00:00
file: path=/etc/systemd/system/docker.service.d state=directory
- name: drop docker environment conf to enable proxy usage
2016-05-10 22:49:27 +00:00
template:
src: http-proxy.conf.j2
dest: /etc/systemd/system/docker.service.d/http-proxy.conf
register: systemddockerproxy
2016-05-10 22:49:27 +00:00
- name: reload systemctl daemons
2016-05-10 22:49:27 +00:00
shell: systemctl daemon-reload
when: systemddockerproxy.changed
2016-05-10 22:49:27 +00:00
- name: restart docker so configs are applies
2016-05-10 22:49:27 +00:00
service: name=docker state=restarted
when: systemddockerproxy.changed