deploy a localhost para desarrollo

This commit is contained in:
Bet@ 2024-09-02 13:11:18 -04:00
parent fadbc37b3a
commit 1e42adcf1b
4 changed files with 15 additions and 4 deletions

View File

@ -1,12 +1,17 @@
== DEPLOY
== DEPLOY ==
```
ansible-playbook deploy.yml -e "host=abyayala alt=abyayala"
PLAY [abyayala] **********************************************************************
# opcional: service define despliegue de servicio especifico
# service undefined: ejecuta todos los roles
# -e "service=defined" si es master, ejecuta su rol | si es worker, tambien pero en el otro host
# --skip-tags=installation saltea una parte, marcada por un tag. por ejemplo, la instalacion. o --skip-tags=installation,keys
```
=== DEPLOY LOCAL ===
```
ansible-playbook --become deploy.yml -e "host=localhost alt=abyayala" -i hosts.local
```

View File

@ -1,3 +1,2 @@
primary_dns_server: abyaya.la
host_ip: 5.161.236.18
proxy_scale: 2

View File

@ -0,0 +1,3 @@
host_ip: 127.0.0.1
compose_path: /tmp/{{ althost }}
proxy_scale: 1

4
hosts.local Normal file
View File

@ -0,0 +1,4 @@
[localhost]
127.0.0.1
localhost ansible_connection=local
ansible_python_interpreter=/usr/bin/python3