...
Updating private repo with hosts and variables
cd sunbird-devops && git checkout tags/release-2.0.0 -b release-2.0.0
cp -rf sunbird-devops/private_repo .
cd private_repo
Folder Structure for the private directory which contains ansible hosts secrets and variables.
Code Block language bash title Folder Structure ~/Documents/projects/subird-devops/private_repo(DO-470 ✗) tree ansible ansible └── inventory └── dev ├── Core │ ├── common.yml │ ├── hosts │ └── secrets.yml ├── DataPipeline │ ├── common.yml │ ├── hosts │ └── secrets.yml └── KnowledgePlatform ├── common.yml ├── hosts └── secrets.yml 5 directories, 9 files
git init
git add .
git commit -m"Creating private files"
git remote add origin <private repo url>
git branch --set-upstream-to=origin/master master && git push --set-upstream origin master
update the variables and push it to upstream.
Updating variables and hosts
cd private_repo/ansible/inventory/dev/<module>/
update hosts common.yml secrets.yml
...