From 2d9c3c27c3f41d0aab85dd5bf32f2402f08b6ef7 Mon Sep 17 00:00:00 2001 From: Salt Date: Sun, 15 Sep 2019 01:17:38 -0500 Subject: [PATCH] Move to dynamic ec2 inventory Here's hoping this works yolo --- ansible.cfg | 3 ++- provision.yml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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