Set the correct ansible users
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

Signed-off-by: Noah Knegt <git@noahknegt.com>
This commit is contained in:
2023-03-31 10:32:32 +02:00
parent 2b8cc7179f
commit abd1dcd74e
3 changed files with 5 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ steps:
- name: ansible apply - name: ansible apply
image: cytopia/ansible:latest-tools image: cytopia/ansible:latest-tools
commands: commands:
- ansible-playbook -i inventory/hosts.yml site.yml - ansible-playbook -i inventory/hosts.yml site.yml --private-key /root/.ssh/id_ed25519
volumes: volumes:
- name: ssh_key - name: ssh_key
path: /root/.ssh path: /root/.ssh

View File

@@ -1,2 +0,0 @@
---
ansible_user: ansible

View File

@@ -13,19 +13,23 @@ vpses:
vps1-contabo: vps1-contabo:
ansible_host: 161.97.139.67 ansible_host: 161.97.139.67
ansible_port: 4422 ansible_port: 4422
ansible_user: ansible
pis: pis:
hosts: hosts:
pi1: pi1:
ansible_host: 192.168.90.2 ansible_host: 192.168.90.2
ansible_user: ansible
pi2: pi2:
ansible_host: 192.168.90.3 ansible_host: 192.168.90.3
ansible_user: ansible
equinox-servers: equinox-servers:
hosts: hosts:
apollo: apollo:
ansible_host: 23.97.157.206 ansible_host: 23.97.157.206
ansible_port: 2004 ansible_port: 2004
ansible_user: ansible
all: all:
children: children:
@@ -38,5 +42,3 @@ all:
equinox: equinox:
children: children:
equinox-servers: equinox-servers:
ansible_connection: ssh
ansible_user: ansible