Set the correct ansible users #13
@@ -36,7 +36,7 @@ steps:
|
||||
- name: ansible apply
|
||||
image: cytopia/ansible:latest-tools
|
||||
commands:
|
||||
- ansible-playbook -i inventory/hosts.yml site.yml
|
||||
- ansible-playbook -i inventory/hosts.yml site.yml --private-key /root/.ssh/id_ed25519
|
||||
volumes:
|
||||
- name: ssh_key
|
||||
path: /root/.ssh
|
||||
|
@@ -1,2 +0,0 @@
|
||||
---
|
||||
ansible_user: ansible
|
@@ -13,19 +13,23 @@ vpses:
|
||||
vps1-contabo:
|
||||
ansible_host: 161.97.139.67
|
||||
ansible_port: 4422
|
||||
ansible_user: ansible
|
||||
|
||||
pis:
|
||||
hosts:
|
||||
pi1:
|
||||
ansible_host: 192.168.90.2
|
||||
ansible_user: ansible
|
||||
pi2:
|
||||
ansible_host: 192.168.90.3
|
||||
ansible_user: ansible
|
||||
|
||||
equinox-servers:
|
||||
hosts:
|
||||
apollo:
|
||||
ansible_host: 23.97.157.206
|
||||
ansible_port: 2004
|
||||
ansible_user: ansible
|
||||
|
||||
all:
|
||||
children:
|
||||
@@ -38,5 +42,3 @@ all:
|
||||
equinox:
|
||||
children:
|
||||
equinox-servers:
|
||||
ansible_connection: ssh
|
||||
ansible_user: ansible
|
||||
|
Reference in New Issue
Block a user