kubernetes-clustergcekubernetesbare-metalk8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansible
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
740 B
21 lines
740 B
---
|
|
- name: create docker service directory for RHEL family
|
|
file: path=/etc/systemd/system/docker.service.d state=directory
|
|
when: ansible_distribution in ["CentOS","RedHat"] and
|
|
ansible_distribution_major_version >= 7
|
|
|
|
- name: drop docker environment for RHEL family
|
|
template:
|
|
src: http-proxy.conf.j2
|
|
dest: /etc/systemd/system/docker.service.d/http-proxy.conf
|
|
when: ansible_distribution in ["CentOS","RedHat"] and
|
|
ansible_distribution_major_version >= 7
|
|
register: rheldockerproxy
|
|
|
|
- name: reload systemctl daemons for RHEL family
|
|
shell: systemctl daemon-reload
|
|
when: rheldockerproxy.changed
|
|
|
|
- name: restart docker for RHEL family
|
|
service: name=docker state=restarted
|
|
when: rheldockerproxy.changed
|