Move to dynamic ec2 inventory
Here's hoping this works yolo
This commit is contained in:
parent
1a71853193
commit
2d9c3c27c3
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user