diff --git a/README.md b/README.md index 92e45b1..a474663 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ Donde Luego, ejecutamos el comando deploy especificando en -e "..." sus parámetros ``` -ansible-playbook deploy.yml -e "host=abyayala alt=abyayala" +ansible-playbook deploy.yml -e "alt=abyayala host=hetzner" ``` Los parámetros obligatorios son: @@ -91,7 +91,7 @@ Los parámetros opcionales pueden ser: También podemos utilizar parámetros de ansible, por ejemplo ``` -ansible-playbook deploy.yml -e "host=abyayala alt=abyayala" --skip-tags=installation,proxy +ansible-playbook deploy.yml -e "alt=abyayala host=hetzner" --skip-tags=installation,proxy ``` Saltea dos partes del proceso, marcadas por tags. En este ejemplo, la instalación y la actualización de Nginx diff --git a/deploy.yml b/deploy.yml index 7618cd9..b06454c 100644 --- a/deploy.yml +++ b/deploy.yml @@ -1,4 +1,4 @@ -# ansible-playbook --vault-id @prompt deploy.yml -e "host=digitalocean alt=numerica" +# ansible-playbook --vault-id @prompt deploy.yml -e "alt=abyayala host=hetzner" # opcional: service define despliegue de servicio especifico --- - hosts: "{{ host }}" diff --git a/files/ssh/beto.pub b/files/ssh/beto.pub new file mode 100644 index 0000000..e9d1508 --- /dev/null +++ b/files/ssh/beto.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCa+hJgoJjK/kkNwpumsMFXG6vg/+eh0PsMcj/Y2a6a8h+yP86qNtUXQnJyntDFuH/++myKnGRCvNxrGBJgn7vWF2b4F/82A6ooZ6OmluxsoxLth7M9+vOS93AqikkfvxaxBp3T0N/N27KI7MT7G5WrW/aoZ2pDKPaV2X5L3ApzLqNylEn65XFIs5ni6C7XgHpVp/2M7eZEnoAuQxw+X2VbBrpyCQYgBVFg77UZZuBZ8XgpzgNeM3B5P67o4agVmt0M1MuuhGT2rToINw3Op9WKtNkxOLnTo3SmmttovxpVrRn9thLnSzbkzLkgwxiXJ8n1Rox6tnlFzoX3cFKO6JE5QltjSfPSxzEurcZgYBB+0LPrVNCmXu/ggCZdmhcqFlq04ZvF9p9hsGEpAziZvgNhQPsyrxfbqkLEz6a0ydqIGfrQni5tkTYYfGprEr24XCKamb+5dWWqDGy52pJjfkM0yOmEXvq0Km0HReTzpM5sNiDs/VHha3ys5gfg3lPKfGU= numerica@rk diff --git a/files/ssh/infinito.pub b/files/ssh/infinito.pub new file mode 100644 index 0000000..eb5f48e --- /dev/null +++ b/files/ssh/infinito.pub @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJYJlf9XD7scKJIQX7ufxYSiZ9FALOiXPLy6g3oKyR56 infinito@fedora diff --git a/group_vars/all/ssh_users.yml b/group_vars/all/ssh_users.yml index 0cd0062..bed6739 100644 --- a/group_vars/all/ssh_users.yml +++ b/group_vars/all/ssh_users.yml @@ -6,9 +6,9 @@ ssh_users: servers_allow: - all -# - name: latina -# comment: "intra servers" -# root: yes -# servers_allow: -# - macarena.latina.red + - name: infinito + comment: "infinito@fedora" + sudo: yes + servers_allow: + - all diff --git a/hosts.production b/hosts.production index 2f9ad02..7af3cda 100644 --- a/hosts.production +++ b/hosts.production @@ -1,8 +1,13 @@ [localhost] 127.0.0.1 -[abyayala] +[hetzner] 5.161.236.18 -[abyayala:vars] +[hetzner:vars] ansible_ssh_user=root + +[sutty] +sutty.nl + +[sutty:vars]