From 35234488e0e5a268dfd8cb5e75937788594fbcd4 Mon Sep 17 00:00:00 2001
From: fejao <mail@fejao.de>
Date: Thu, 13 Feb 2025 17:30:18 +0100
Subject: [PATCH] Updating test files

---
 README.md                                     | 36 ++++++++++++-------
 ci-cd/playbooks/06_oh_my_bash.yml             |  1 +
 playbooks/examples/example_01_test.yml        |  3 +-
 .../examples/example_02_dependencies.yml      |  3 +-
 .../example_03_clone_repositories.yml         |  3 +-
 .../examples/example_04_docker_images.yml     |  3 +-
 .../examples/example_05_docker_containers.yml |  3 +-
 playbooks/examples/example_06_oh_my_bash.yml  |  3 +-
 8 files changed, 37 insertions(+), 18 deletions(-)

diff --git a/README.md b/README.md
index c196eba..242e3d2 100644
--- a/README.md
+++ b/README.md
@@ -17,33 +17,48 @@
     - [x] [oh_my_bash](https://git.cccv.de/fejao/c3infodesk-deployment/-/commit/6bf23eb4335ad92ba42b9d1872abf497aed735cc)
 - [x] Set ansible-lint for the roles.
 - [ ] Add molecule tests to CI-CD
+    - CI-CD tests can't run **molecule** tests on this server because **DIND (docker in docker)** is not setted at this server :(
 
 
 ## What is this?
 This is a repo for deploying the the printer system used at the c3infodesk for printing EXTREMILY NECESSARY documents.
 
+
 ## Dependencies
 To have [ansible](https://docs.ansible.com/ansible/latest/installation_guide/installation_distros.html) installed at your system.
 
+
 ## Roles
 Here are the used roles:
 
-- [dependencies](roles/dependencies/README.md)
-- [clone_repositories](roles/clone_repositories/README.md)
-- [docker_images](roles/docker_images/README.md)
-- [docker_containers](roles/docker_containers/README.md)
+- [dependencies(role)](https://git.cccv.de/fejao/c3infodesk-deployment-role-dependencies)
+- [clone_repositories](https://git.cccv.de/fejao/c3infodesk-deployment-role-clone-repositories)
+- [docker_images](https://git.cccv.de/fejao/c3infodesk-deployment-role-docker-images)
+- [docker_containers](https://git.cccv.de/fejao/c3infodesk-deployment-role-docker-containers)
+- [oh_my_bash](https://git.cccv.de/fejao/c3infodesk-deployment-role-oh-my-bash)
+
+The roles are setted as **git submodules**.
+
+For adding this roles to this repository, you need to start/init the submodules. You can do it by runnig this command:
+
+```bash
+git submodules update --init
+```
+
 
 ## How to use this
 - 1. Clone this repo.
-- 2. Edit the files.
+- 2. Init the submodules
+- 3. Edit the files.
     - Set your **remote_user** configuration at the **ansible.cfg** file.
     - Set your **inventories/host_vars/<TARGET_NAME>** file.
-- 3. Run the playbooks
+- 4. Run the playbooks
     - Example for deploying the containers at the target:
     ```bash
     ansible-playbook -i inventories/hosts playbooks/examples/example_05_docker_containers.yml
     ```
-- 4. Change the default environment variables setted from the [docker-compose.yml](https://git.cccv.de/fejao/c3infodesk-printer/-/blob/main/docker/docker-compose.yml) file to your needs and recreate the containers. You might need to login at the **target** for doing it so.
+- 5. Change the default environment variables setted from the [docker-compose.yml](https://git.cccv.de/fejao/c3infodesk-printer/-/blob/main/docker/docker-compose.yml) file to your needs and recreate the containers. You might need to login at the **target** for doing it so.
+
 
 ## Local testing
 At the moment, the only tests setted CI-CD are.
@@ -62,10 +77,7 @@ At the moment, the only tests setted CI-CD are.
 
 MIT / BSD
 
-## Author Information
-
-![fejao logo](files/from_authors/fejao_logo_circle.png "fejao") [https://chaos.social/@fejao](https://chaos.social/@fejao)
-
-
 
+## Author Information
 
+[https://chaos.social/@fejao](https://chaos.social/@fejao)
diff --git a/ci-cd/playbooks/06_oh_my_bash.yml b/ci-cd/playbooks/06_oh_my_bash.yml
index 480c410..94a37dd 100644
--- a/ci-cd/playbooks/06_oh_my_bash.yml
+++ b/ci-cd/playbooks/06_oh_my_bash.yml
@@ -5,4 +5,5 @@
   hosts:
     - example_servers_group
   roles:
+    # - roles/oh_my_bash
     - roles/c3infodesk-deployment-role-oh-my-bash
diff --git a/playbooks/examples/example_01_test.yml b/playbooks/examples/example_01_test.yml
index 6580445..891798b 100644
--- a/playbooks/examples/example_01_test.yml
+++ b/playbooks/examples/example_01_test.yml
@@ -5,4 +5,5 @@
   hosts:
     - example_servers_group
   roles:
-    - roles/test
+    # - roles/test
+    - roles/c3infodesk-deployment-role-test
diff --git a/playbooks/examples/example_02_dependencies.yml b/playbooks/examples/example_02_dependencies.yml
index 9d881c1..0c8c203 100644
--- a/playbooks/examples/example_02_dependencies.yml
+++ b/playbooks/examples/example_02_dependencies.yml
@@ -5,4 +5,5 @@
   hosts:
     - example_servers_group
   roles:
-    - roles/dependencies
+    # - roles/dependencies
+    - roles/c3infodesk-deployment-role-dependencies
diff --git a/playbooks/examples/example_03_clone_repositories.yml b/playbooks/examples/example_03_clone_repositories.yml
index e0fd12f..8659519 100644
--- a/playbooks/examples/example_03_clone_repositories.yml
+++ b/playbooks/examples/example_03_clone_repositories.yml
@@ -5,4 +5,5 @@
   hosts:
     - example_servers_group
   roles:
-    - roles/clone_repositories
+    # - roles/clone_repositories
+    - roles/c3infodesk-deployment-role-clone-repositories
diff --git a/playbooks/examples/example_04_docker_images.yml b/playbooks/examples/example_04_docker_images.yml
index a3ad2dd..00fbec9 100644
--- a/playbooks/examples/example_04_docker_images.yml
+++ b/playbooks/examples/example_04_docker_images.yml
@@ -5,4 +5,5 @@
   hosts:
     - example_servers_group
   roles:
-    - roles/docker_images
+    # - roles/docker_images
+    - roles/c3infodesk-deployment-role-docker-images
diff --git a/playbooks/examples/example_05_docker_containers.yml b/playbooks/examples/example_05_docker_containers.yml
index 54c92cd..342a556 100644
--- a/playbooks/examples/example_05_docker_containers.yml
+++ b/playbooks/examples/example_05_docker_containers.yml
@@ -4,7 +4,8 @@
   hosts:
     - example_servers_group
   roles:
-    - role: roles/docker_containers
+    # - role: roles/docker_containers
+    - role: roles/c3infodesk-deployment-role-docker-containers
       vars:
         c3infodesk_printer_host_cups_disable: true
         c3infodesk_printer_host_cups_mask: true
diff --git a/playbooks/examples/example_06_oh_my_bash.yml b/playbooks/examples/example_06_oh_my_bash.yml
index 869f62b..9917694 100644
--- a/playbooks/examples/example_06_oh_my_bash.yml
+++ b/playbooks/examples/example_06_oh_my_bash.yml
@@ -5,4 +5,5 @@
   hosts:
     - example_servers_group
   roles:
-    - roles/oh_my_bash
+    # - roles/oh_my_bash
+    - roles/c3infodesk-deployment-role-oh-my-bash
-- 
GitLab