blob: 23fd8528ae94b57fa39b589cb4717b839cb79b12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
---
- name: Ensure /var/lib/containers exists
file:
path: /var/lib/containers
state: directory
- name: Fix SELinux Permissions on /var/lib/containers
command: "restorecon -R /var/lib/containers/"
changed_when: false
- meta: flush_handlers
# This needs to run after docker is restarted to account for proxy settings.
# registry_auth is called directly with import_role in some places, so we
# have to put it in the root of the tasks/ directory.
- include_tasks: ../registry_auth.yml
- name: stat the docker data dir
stat:
path: "{{ docker_default_storage_path }}"
register: dockerstat
- include_tasks: setup_docker_symlink.yml
when:
- openshift_use_crio | bool
- dockerstat.stat.islnk is defined and not (dockerstat.stat.islnk | bool)
|