aboutsummaryrefslogtreecommitdiffstats
path: root/roles/workstation/tasks
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-01-11 17:09:18 +0100
committerRomain Gonçalves <me@rgoncalves.se>2022-01-11 17:09:18 +0100
commit3dee651b447b20157e52bfbfd7312b4c73b1be09 (patch)
tree21a7b5dd3245130f64280977c9080c5e95159413 /roles/workstation/tasks
parent6e68a163a207529883dc61330dade959b4a83945 (diff)
downloadrules-3dee651b447b20157e52bfbfd7312b4c73b1be09.tar.gz
roles/workstation: Setup docker daemon configuration
Diffstat (limited to 'roles/workstation/tasks')
-rw-r--r--roles/workstation/tasks/dockerd.yml7
-rw-r--r--roles/workstation/tasks/os_archlinux.yml3
2 files changed, 10 insertions, 0 deletions
diff --git a/roles/workstation/tasks/dockerd.yml b/roles/workstation/tasks/dockerd.yml
new file mode 100644
index 0000000..f3ace56
--- /dev/null
+++ b/roles/workstation/tasks/dockerd.yml
@@ -0,0 +1,7 @@
+- name: configure default network for docker containers
+ template:
+ src: docker-daemon.json.j2
+ dest: /etc/docker/daemon.json
+ owner: 0
+ group: 0
+ mode: 0600
diff --git a/roles/workstation/tasks/os_archlinux.yml b/roles/workstation/tasks/os_archlinux.yml
index 7186585..912d938 100644
--- a/roles/workstation/tasks/os_archlinux.yml
+++ b/roles/workstation/tasks/os_archlinux.yml
@@ -37,6 +37,9 @@
- name: include virtualization setup
include_tasks: libvirt.yml
+- name: include dockerd setup
+ include_tasks: dockerd.yml
+
- name: retrieve installed packages
package_facts:
register: package_facts
remember that computers suck.