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
|
||||
Reference in new issue
Block a user