fix hosts

This commit is contained in:
Valentin CZERYBA 2022-11-06 18:31:35 +01:00
parent 398adda930
commit 097d0621d6
3 changed files with 12 additions and 5 deletions

View File

@ -1,11 +1,14 @@
vps ansible_connection=ssh ansible_host=51.222.107.37 ansible_port=2424 ansible_user=valentin vps-host ansible_connection=ssh ansible_host=51.222.107.37 ansible_port=2424 ansible_user=valentin
valentin-nas ansible_connection=ssh ansible_host=151.80.37.38 ansible_port=2424 ansible_user=valentin valentin-nas ansible_connection=ssh ansible_host=151.80.37.38 ansible_port=2424 ansible_user=valentin
drone-host ansible_connection=ssh ansible_host=151.80.37.38 ansible_port=2424 ansible_user=valentin drone-host ansible_connection=ssh ansible_host=151.80.37.38 ansible_port=2424 ansible_user=valentin
localhost ansible_host=127.0.0.1 localhost ansible_host=127.0.0.1
[db] [vps]
vps-host
[db:children]
local
vps vps
localhost
[db_vault:children] [db_vault:children]
db db

View File

@ -1,5 +1,5 @@
--- ---
- hosts: registry db drone - hosts: registry vps
remote_user: valentin remote_user: valentin
roles: roles:
- server - server

View File

@ -16,3 +16,7 @@
file: file:
path: "{{ project_src }}" path: "{{ project_src }}"
state: absent state: absent
vars:
ansible_become: yes
ansible_become_method: sudo
ansible_become_password: "{{ sudo_password }}"