feat: add Ansible playbooks for Docker management, system updates, and host configuration
This commit is contained in:
1 parent
473065199f
commit
56edb6a70d
7 files changed
+68
-25
No files matched your search
@@ -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,6 +1,6 @@
|
||||
---
|
||||
- name: Clean docker
|
||||
hosts: k5bss.com
|
||||
hosts: ki5bhv.com
|
||||
|
||||
tasks:
|
||||
- name: Prune non-dangling images
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: Deploy Docker Compose stack with pull and restart
|
||||
hosts: k5bss.com
|
||||
hosts: ki5bhv.com
|
||||
become: true
|
||||
tasks:
|
||||
- name: Qbits
|
||||
|
||||
@@ -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/
|
||||
|
||||
Reference in new issue
Block a user