Move to dynamic ec2 inventory

Here's hoping this works
yolo
This commit is contained in:
Salt 2019-09-15 01:17:38 -05:00
parent 1a71853193
commit 2d9c3c27c3
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
[defaults] [defaults]
inventory = hosts #inventory = hosts
inventory = ec2.py
remote_user = ubuntu remote_user = ubuntu
private_key_file = ~/.ssh/ansible private_key_file = ~/.ssh/ansible
ssh_extra_args =-o ForwardAgent=yes -o StrictHostKeyChecking=no ssh_extra_args =-o ForwardAgent=yes -o StrictHostKeyChecking=no

View File

@ -1,9 +1,9 @@
#!/usr/bin/ansible-playbook #!/usr/bin/ansible-playbook
# vim:ft=ansible: # vim:ft=ansible:
--- ---
- hosts: aws - hosts: tag_role_common
roles: roles:
- common - common
- hosts: ansible - hosts: tag_role_ansiblehost
roles: roles:
- ansiblehost - ansiblehost