55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
# 2026-10-27 Hyperling
|
|
# Pulled out of llm.yml since the number of tasks is growing.
|
|
|
|
- name: Workstation | Linux | Software | Docker | Install
|
|
ansible.builtin.package:
|
|
name:
|
|
- docker
|
|
- docker-compose
|
|
- docker-buildx
|
|
state: present
|
|
|
|
- name: Workstation | Linux | Software | Docker | Install [runit]
|
|
ansible.builtin.package:
|
|
name:
|
|
- docker-runit
|
|
state: present
|
|
when: ansible_pkg_mgr == "pacman"
|
|
and ansible_service_mgr == "runit"
|
|
|
|
- name: Workstation | Linux | Software | Docker | Group
|
|
ansible.builtin.user:
|
|
name: "{{ item }}"
|
|
groups: docker
|
|
append: true
|
|
loop:
|
|
- root
|
|
- "{{ user }}"
|
|
|
|
- name: Workstation | Linux | Software | Docker | Config | Dir
|
|
ansible.builtin.file:
|
|
name: /etc/docker
|
|
state: directory
|
|
owner: root
|
|
mode: '0755'
|
|
|
|
# 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'
|