docker, remove the daemon.json file.

This commit is contained in:
me committed 2026-10-27 19:06:25 -07:00
1 parent 6117a65009
commit 373b03d46c
1 file changed
+25 -10
+25 -10
View File
@@ -26,14 +26,29 @@
- root - root
- "{{ user }}" - "{{ user }}"
- name: Workstation | Linux | Software | Docker | Config - name: Workstation | Linux | Software | Docker | Config | Dir
ansible.builtin.copy: ansible.builtin.file:
dest: /etc/docker/daemon.json name: /etc/docker
content: | state: directory
{
"firewall-backend": "nftables",
"iptables": false
}
owner: root owner: root
mode: '0644' mode: '0755'
when: ansible_pkg_mgr == "pacman"
# This was causing the docker daemon to fail. Was trying to fix ports mappings.
#- name: Workstation | Linux | Software | Docker | Config | File
# ansible.builtin.copy:
# dest: /etc/docker/daemon.json
# content: |
# {
# "firewall-backend": "nftables"
# }
# backup: false
# owner: root
# mode: '0644'
# when: ansible_pkg_mgr == "pacman"
- name: Workstation | Linux | Software | Docker | Config | File
ansible.builtin.file:
name: /etc/docker/daemon.json
state: absent
owner: root
mode: '0755'