diff --git a/ansible.cfg b/ansible.cfg index fa6cc7e..8c1335f 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,2 +1,2 @@ [defaults] -inventory = inventory/servers.ini +inventory = inventory/hosts.yml diff --git a/base.yml b/base.yml index d8ffb49..d6660bc 100644 --- a/base.yml +++ b/base.yml @@ -8,13 +8,13 @@ #=================================================================================================== --- -- hosts: all +- hosts: datacenter remote_user: root roles: - setup # Clean up the system -- hosts: ubuntu +- hosts: datacenter remote_user: ansible become: true tasks: