|
@@ -137,17 +137,6 @@
|
|
changed_when: False
|
|
changed_when: False
|
|
register: r_docker_already_running_result
|
|
register: r_docker_already_running_result
|
|
|
|
|
|
-- name: Check for docker_storage_path/overlay2
|
|
|
|
- stat:
|
|
|
|
- path: "{{ docker_storage_path }}/overlay2"
|
|
|
|
- register: dsp_stat
|
|
|
|
-
|
|
|
|
-- name: Fixup SELinux permissions for docker
|
|
|
|
- shell: |
|
|
|
|
- semanage fcontext -a -e /var/lib/docker/overlay2 "{{ docker_storage_path }}/overlay2"
|
|
|
|
- restorecon -R -v "{{ docker_storage_path }}/overlay2"
|
|
|
|
- when: dsp_stat.stat.exists
|
|
|
|
-
|
|
|
|
- name: Start the Docker service
|
|
- name: Start the Docker service
|
|
systemd:
|
|
systemd:
|
|
name: docker
|
|
name: docker
|
|
@@ -162,4 +151,15 @@
|
|
- set_fact:
|
|
- set_fact:
|
|
docker_service_status_changed: "{{ (r_docker_package_docker_start_result is changed) and (r_docker_already_running_result.stdout != 'ActiveState=active' ) }}"
|
|
docker_service_status_changed: "{{ (r_docker_package_docker_start_result is changed) and (r_docker_already_running_result.stdout != 'ActiveState=active' ) }}"
|
|
|
|
|
|
|
|
+- name: Check for docker_storage_path/overlay2
|
|
|
|
+ stat:
|
|
|
|
+ path: "{{ docker_storage_path }}/overlay2"
|
|
|
|
+ register: dsp_stat
|
|
|
|
+
|
|
|
|
+- name: Fixup SELinux permissions for docker
|
|
|
|
+ shell: |
|
|
|
|
+ semanage fcontext -a -e /var/lib/docker/overlay2 "{{ docker_storage_path }}/overlay2"
|
|
|
|
+ restorecon -R -v "{{ docker_storage_path }}/overlay2"
|
|
|
|
+ when: dsp_stat.stat.exists
|
|
|
|
+
|
|
- import_tasks: common/post.yml
|
|
- import_tasks: common/post.yml
|