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: localhost:
hosts: hosts:
localhost: localhost-machine:
ansible_user: ansible ansible_connection: local
ansible_host: 127.0.0.1
all: all:
children: children:

View File

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