From 8b3dbca6cd0ff37b2711dc2192140d4964ca8920 Mon Sep 17 00:00:00 2001
From: anima
Date: Tue, 9 Apr 2024 12:30:23 +0200
Subject: [PATCH] add docker mgmt and basic playbook
---
.gitmodules | 3 +++
ansible.d/inventory | 4 ++--
playbooks/default.yml | 5 +++++
roles/docker-mgmt | 1 +
4 files changed, 11 insertions(+), 2 deletions(-)
create mode 100644 playbooks/default.yml
create mode 160000 roles/docker-mgmt
diff --git a/.gitmodules b/.gitmodules
index e420ef4..3f83de2 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -4,3 +4,6 @@
[submodule "roles/security-setup"]
path = roles/security-setup
url = https://git.ao-it.net/ansible/security-setup
+[submodule "roles/docker-mgmt"]
+ path = roles/docker-mgmt
+ url = https://git.ao-it.net/ansible/docker-mgmt
diff --git a/ansible.d/inventory b/ansible.d/inventory
index f0715d1..5a559ef 100644
--- a/ansible.d/inventory
+++ b/ansible.d/inventory
@@ -1,6 +1,7 @@
-SDExample01 ansible_host=127.0.0.1
+SDExample01 ansible_host=127.0.0.1 ansible_connection=local
[docker]
+SDExample01
[setup]
@@ -8,7 +9,6 @@ SDExample01 ansible_host=127.0.0.1
docker
[init]
-SDExample01
[all:vars]
ansible_port=2020
diff --git a/playbooks/default.yml b/playbooks/default.yml
new file mode 100644
index 0000000..f6f3a6d
--- /dev/null
+++ b/playbooks/default.yml
@@ -0,0 +1,5 @@
+- hosts: setup
+ roles:
+ - security-setup
+ - base-setup
+ - docker-mgmt
\ No newline at end of file
diff --git a/roles/docker-mgmt b/roles/docker-mgmt
new file mode 160000
index 0000000..70584c1
--- /dev/null
+++ b/roles/docker-mgmt
@@ -0,0 +1 @@
+Subproject commit 70584c19f47b652d83293292ca0d5334e673b263