feat: add Ansible playbooks for Docker management, system updates, and host configuration

This commit is contained in:
Justin committed 2026-04-14 15:56:26 -05:00
1 parent 473065199f
commit 56edb6a70d
7 files changed
+68 -25

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
---
- name: Install Docker and Docker Compose plugin
hosts: killer2.ki5bhv.com
become: true
tasks:
- name: Update apt package index
ansible.builtin.apt:
update_cache: true
- name: Ensure required packages for Docker are installed
ansible.builtin.apt:
name:
- ca-certificates
- curl
- gnupg
- lsb-release
state: present
# The following steps are typically part of a full Docker installation playbook
# to set up the official Docker repository, but are omitted here for brevity.
# If you install Docker from the standard Ubuntu repos, the following task is sufficient:
- name: Install the Docker Compose plugin
ansible.builtin.apt:
name: docker-compose-plugin
state: present
+1 -1
View File
@@ -1,6 +1,6 @@
---
- name: Clean docker
hosts: k5bss.com
hosts: ki5bhv.com
tasks:
- name: Prune non-dangling images
+1 -1
View File
@@ -1,6 +1,6 @@
---
- name: Deploy Docker Compose stack with pull and restart
hosts: k5bss.com
hosts: ki5bhv.com
become: true
tasks:
- name: Qbits
+2 -1
View File
@@ -1,8 +1,9 @@
---
- name: Deploy Docker Compose stack with pull and restart
hosts: k5bss.com
hosts: ki5bhv.com
become: true
tasks:
- name: Qbits
community.docker.docker_compose_v2:
project_src: /home/justin/docker/qbits/