added ansible for deployment in private infrastrucutre

This commit is contained in:
2021-05-21 12:44:15 +04:00
parent 64bc064e56
commit 616f161c36
51 changed files with 864 additions and 0 deletions

25
deploy/hosts.example Normal file
View File

@@ -0,0 +1,25 @@
---
all:
vars:
ansible_python_interpreter: /usr/bin/python3
test:
hosts:
test1:
ansible_host: 127.0.0.1 # Replace with your remote IP
ansible_port: 2222 # Replace with your remote SSH port
ansible_user: vagrant # Replace wtih your username
production:
hosts:
writer:
ansible_host: 192.168.1.100 # Replace with your remote IP
ansible_port: 2202 # Replace with your remote SSH port
ansible_user: ansible # Replace wtih your username
mirror1:
ansible_host: 192.168.1.101 # Replace with your remote IP
ansible_port: 2202 # Replace with your remote SSH port
ansible_user: ansible # Replace wtih your username
mirror2:
ansible_host: 192.168.1.102 # Replace with your remote IP
ansible_port: 2202 # Replace with your remote SSH port
ansible_user: ansible # Replace wtih your username