diff --git a/ansible.cfg b/ansible.cfg index d1caaa9..e270e47 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,5 +1,6 @@ [defaults] -inventory = hosts +#inventory = hosts +inventory = ec2.py remote_user = ubuntu private_key_file = ~/.ssh/ansible ssh_extra_args =-o ForwardAgent=yes -o StrictHostKeyChecking=no diff --git a/provision.yml b/provision.yml index 404a015..6d2148e 100644 --- a/provision.yml +++ b/provision.yml @@ -1,9 +1,9 @@ #!/usr/bin/ansible-playbook # vim:ft=ansible: --- -- hosts: aws +- hosts: tag_role_common roles: - common -- hosts: ansible +- hosts: tag_role_ansiblehost roles: - ansiblehost