feat: docker base role & opensearch

This commit is contained in:
2024-12-22 13:29:41 +00:00
parent 5a2fbf8599
commit 8c4ef6ded7
4 changed files with 21 additions and 16 deletions

View File

@@ -0,0 +1,6 @@
opensearch_data_nodes:
- opensearch-data-1
- opensearch-data-2
opensearch_dashboards:
- opensearch-dashboard-1

View File

@@ -0,0 +1,13 @@
- name: Debian | Add GPG Keys
apt_key:
url: "https://download.docker.com/linux/debian/gpg"
- name: Debian | Add Repo Source
apt_repository:
repo: "deb [arch=amd64] https://download.docker.com/linux/debian bullseye stable"
update_cache: yes
- name: Install docker-ce
apt:
name: docker-ce
state: present

View File

@@ -1,25 +1,9 @@
- name: Debian | Add GPG Keys
apt_key:
url: "https://download.docker.com/linux/debian/gpg"
- name: Debian | Add Repo Source
apt_repository:
repo: "deb [arch=amd64] https://download.docker.com/linux/debian bullseye stable"
update_cache: yes
- name: Debian | Configure Sysctl
sysctl:
name: "net.ipv4.ip_forward"
value: "1"
state: present
- name: Install Docker prerequisites
apt:
state: present
pkg:
- docker-ce
- gpg
- name: Fix CRI Plugin containerd config
copy:
src: containerd.toml

View File

@@ -0,0 +1,2 @@
dependencies:
- docker-base