Skip to content
Snippets Groups Projects
Commit 962155e4 authored by Spencer Smith's avatar Spencer Smith
Browse files

updated names and removed checks for rhel, as we already know we have systemd inside that play

parent c90c981b
No related branches found
No related tags found
No related merge requests found
--- ---
- name: create docker service directory for RHEL family - name: create docker service directory for systemd
file: path=/etc/systemd/system/docker.service.d state=directory 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 - name: drop docker environment conf to enable proxy usage
template: template:
src: http-proxy.conf.j2 src: http-proxy.conf.j2
dest: /etc/systemd/system/docker.service.d/http-proxy.conf dest: /etc/systemd/system/docker.service.d/http-proxy.conf
when: ansible_distribution in ["CentOS","RedHat"] and register: systemddockerproxy
ansible_distribution_major_version >= 7
register: rheldockerproxy
- name: reload systemctl daemons for RHEL family - name: reload systemctl daemons
shell: systemctl daemon-reload shell: systemctl daemon-reload
when: rheldockerproxy.changed when: systemddockerproxy.changed
- name: restart docker for RHEL family - name: restart docker so configs are applies
service: name=docker state=restarted service: name=docker state=restarted
when: rheldockerproxy.changed when: systemddockerproxy.changed
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment