mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-06 06:41:36 +01:00
feat: docker base role & opensearch
This commit is contained in:
6
group_vars/opensearch.yaml
Normal file
6
group_vars/opensearch.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
opensearch_data_nodes:
|
||||
- opensearch-data-1
|
||||
- opensearch-data-2
|
||||
|
||||
opensearch_dashboards:
|
||||
- opensearch-dashboard-1
|
||||
13
roles/docker-base/tasks/main.yaml
Normal file
13
roles/docker-base/tasks/main.yaml
Normal 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
|
||||
@@ -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
|
||||
|
||||
2
roles/opensearch/meta/main.yaml
Normal file
2
roles/opensearch/meta/main.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
dependencies:
|
||||
- docker-base
|
||||
Reference in New Issue
Block a user