2022-11-30 23:49:07 +01:00
|
|
|
---
|
2024-09-19 23:10:00 +02:00
|
|
|
- name: Update and upgrade packages
|
2024-10-08 04:13:38 +02:00
|
|
|
ansible.builtin.apt:
|
|
|
|
update_cache: true
|
|
|
|
upgrade: true
|
|
|
|
autoremove: true
|
|
|
|
become: true
|
2022-11-30 23:49:07 +01:00
|
|
|
|
feat(ansible): add Docker host configuration with NFS mounts and utility packages
- Introduce Docker host configuration playbooks in `docker_host` role
- Install Docker and Docker Compose via apt repository
- Configure Docker user, group, and required directories (`/opt/docker`, `/media`)
- Add NFS mounts for Docker data, series, movies, and songs directories
- Add extra utility packages (`bat`, `ripgrep`, `fd-find`, `screen`, `eza`, `neovim`)
- Set up and manage `bash_aliases` for user-friendly command replacements (`batcat`, `nvim`, `eza`)
- Enhance `/group_vars` and `/host_vars` for Docker-related settings and secure access
- Add `docker-host00` and `docker-host01` entries to production and staging inventories
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
2024-11-10 21:37:22 +01:00
|
|
|
- name: Install base packages
|
2024-10-08 04:13:38 +02:00
|
|
|
ansible.builtin.apt:
|
2022-11-30 23:49:07 +01:00
|
|
|
name: "{{ common_packages }}"
|
|
|
|
state: present
|
2024-10-08 04:13:38 +02:00
|
|
|
become: true
|