Skip to content
Snippets Groups Projects
Commit c52acd40 authored by nimrod's avatar nimrod
Browse files

- Removed hardcoded Docker graph directory values.

parent 22fd53d7
No related branches found
No related tags found
No related merge requests found
[Unit]
After=home-nimrod.mount
AssertPathIsMountPoint={{ docker_graph_mount }}
After=home-{{ ansible_env.SUDO_USER }}.mount
AssertPathIsMountPoint={{ docker_graph_df.stdout_lines.1.split().5 }}
AssertPathIsDirectory={{ docker_graph_directory }}
......@@ -3,8 +3,7 @@
become: yes
become_user: root
vars:
docker_graph_mount: '/home/{{ ansible_env.SUDO_USER }}'
docker_graph_directory: '{{ docker_graph_mount }}/.bind_mounts/docker'
docker_graph_directory: '/home/{{ ansible_env.SUDO_USER }}/.bind_mounts/docker'
handlers:
- name: Systemd daemon reload
command: /bin/systemctl daemon-reload
......@@ -71,6 +70,11 @@
notify:
- Restart Docker
- name: Get Docker graph directory mountpoint
shell: df {{ docker_graph_directory }}
register: docker_graph_df
changed_when: False
- name: Create Systemd configuration override directories
with_items:
- docker.service
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment