Correctly specify localhost
Signed-off-by: Noah Knegt <git@noahknegt.com>
This commit is contained in:
@@ -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:
|
||||||
|
4
site.yml
4
site.yml
@@ -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:
|
||||||
|
Reference in New Issue
Block a user