Correctly specify localhost

Signed-off-by: Noah Knegt <git@noahknegt.com>
This commit is contained in:
2024-04-12 19:37:45 +02:00
parent da391d2f1f
commit 9c638deee3
2 changed files with 4 additions and 5 deletions

View File

@@ -26,9 +26,8 @@ pis:
localhost:
hosts:
localhost:
ansible_user: ansible
ansible_host: 127.0.0.1
localhost-machine:
ansible_connection: local
all:
children:

View File

@@ -9,7 +9,7 @@
---
- name: Setup
hosts: datacenter
hosts: all
remote_user: root
roles:
- role: setup
@@ -17,7 +17,7 @@
# Clean up the system
- name: Cleanup
hosts: datacenter
hosts: all
remote_user: ansible
become: true
tasks: