856866fdde
Change-Id: I8157ec1f31b8c5a064b63002e8311b91ef9ce9ab See: https://ansible-lint.readthedocs.io/en/latest/default_rules.html#file-permissions-not-mentioned
25 lines
496 B
YAML
25 lines
496 B
YAML
- name: Create docker directory
|
|
become: yes
|
|
file:
|
|
state: directory
|
|
path: /etc/docker
|
|
mode: 0755
|
|
|
|
- name: Set docker_mirror fact
|
|
when:
|
|
- docker_mirror is not defined
|
|
- mirror_fqdn is defined
|
|
set_fact:
|
|
docker_mirror: "http://{{ mirror_fqdn }}:8082"
|
|
|
|
- name: Install dockerhub proxy configuration
|
|
become: yes
|
|
when:
|
|
- docker_mirror is defined
|
|
template:
|
|
dest: /etc/docker/daemon.json
|
|
group: root
|
|
mode: 0644
|
|
owner: root
|
|
src: daemon.json.j2
|