diff --git a/inventory/hosts.yml b/inventory/hosts.yml index 75d1a6c..91448c1 100644 --- a/inventory/hosts.yml +++ b/inventory/hosts.yml @@ -26,9 +26,8 @@ pis: localhost: hosts: - localhost: - ansible_user: ansible - ansible_host: 127.0.0.1 + localhost-machine: + ansible_connection: local all: children: diff --git a/site.yml b/site.yml index 9858652..f898c33 100644 --- a/site.yml +++ b/site.yml @@ -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: