deploy a localhost para desarrollo
This commit is contained in:
parent
fadbc37b3a
commit
1e42adcf1b
11
README.md
11
README.md
@ -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
|
||||
```
|
||||
|
@ -1,3 +1,2 @@
|
||||
primary_dns_server: abyaya.la
|
||||
host_ip: 5.161.236.18
|
||||
proxy_scale: 2
|
||||
|
3
group_vars/localhost/vars
Normal file
3
group_vars/localhost/vars
Normal file
@ -0,0 +1,3 @@
|
||||
host_ip: 127.0.0.1
|
||||
compose_path: /tmp/{{ althost }}
|
||||
proxy_scale: 1
|
4
hosts.local
Normal file
4
hosts.local
Normal file
@ -0,0 +1,4 @@
|
||||
[localhost]
|
||||
127.0.0.1
|
||||
localhost ansible_connection=local
|
||||
ansible_python_interpreter=/usr/bin/python3
|
Loading…
x
Reference in New Issue
Block a user