From e358f8b3a7bf881fd7c363ec9579d4f81674a162 Mon Sep 17 00:00:00 2001 From: RaspberryProgramming Date: Thu, 25 Jul 2024 00:22:18 +0000 Subject: [PATCH] Added information on deployment with an ansible playbook --- README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/README.md b/README.md index 02b720f..5e59edc 100644 --- a/README.md +++ b/README.md @@ -117,4 +117,37 @@ Next, you can run the project using the following command. This can be run even ```bash docker compose up -d +``` + +## Ansible Playbook + +You can get access to an ansible playbook and associated files by checking out the following repository + +[https://github.com/RaspberryProgramming/CamsAnsibleLibrary/](https://github.com/RaspberryProgramming/CamsAnsibleLibrary) + +You can clone the repository + +```bash +git clone https://github.com/RaspberryProgramming/CamsAnsibleLibrary + +cd CamsAnsibleLibrary/Request\ Mirror/ +``` + +Next, you can create your "inventory" file + +``` +[request-mirror-host] +10.1.2.3 +``` + +If you haven't already, setup an ssh key so you can automatically log into your remote host as root. If you decide to use a user with sudo privileges you may need to modify the playbook on your own. + +```bash +ansible-playbook request_mirror_deployment.yml -i inventory +``` + +If you need to enter a root password, you can add the -K argument + +```bash +ansible-playbook request_mirror_deployment.yml -i inventory -K ``` \ No newline at end of file