diff --git a/.drone.yml b/.drone.yml index d02a7f2..a1da8f9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 diff --git a/inventory/group_vars/all.yml b/inventory/group_vars/all.yml deleted file mode 100644 index a2d0440..0000000 --- a/inventory/group_vars/all.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -ansible_user: ansible diff --git a/inventory/hosts.yml b/inventory/hosts.yml index f033efa..905d17d 100644 --- a/inventory/hosts.yml +++ b/inventory/hosts.yml @@ -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