diff --git a/README.md b/README.md index c196eba743f3eaf4ca251d0fc9322b1fa5181915..242e3d2dff4d77514571a55833849c549f0dcfba 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 - - [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 480c410243a01404611c38ff8243e93745b7e102..94a37ddb95ab4284dbee949ca0d0d86edafe94d4 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 6580445dfeafbac7a486d833833bbd8c7d54f534..891798b937d55bcac1db3816b89935f48083bc3b 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 9d881c10a58e889d10b41e5a54c33565a585362b..0c8c2033cd4e94ca75819fdea1da539c550854e4 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 e0fd12f69b182489cc9385f8d8fd8aea07eb0987..865951930135f1797f367b461086170d1ef77032 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 a3ad2dd9ccc1945d423e8d69b1c5ca288f50044b..00fbec9424796c2e636436832210e027d7d45484 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 54c92cd761e136546c68a6e98f8dbb71af54f843..342a55643bb5bbc269dbfab2867923aa1e2e952d 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 869f62bb53c8572a7b0cd879c0fe9cb45f4a37fd..9917694fa55f4bff5c2d2f6c4b47acc4a189c7c7 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