commit | 573bafcc6ce7500187c98a2ced6439571266e445 | [log] [tgz] |
---|---|---|
author | Zack Williams <zdw@artisancomputer.com> | Fri Feb 26 16:35:42 2016 -0700 |
committer | Zack Williams <zdw@artisancomputer.com> | Fri Feb 26 16:35:42 2016 -0700 |
tree | 2652d0dbaa4467a57161f4b33c4b8e5a2052e160 | |
parent | c1690b4f873cc370c2bc05d8dc6e6821ab628d15 [diff] |
working through ansible conversion of juju-setup.py
diff --git a/roles/create-vms/tasks/main.yml b/roles/create-vms/tasks/main.yml index 123b86b..a637153 100644 --- a/roles/create-vms/tasks/main.yml +++ b/roles/create-vms/tasks/main.yml
@@ -13,6 +13,14 @@ register: vm_ip - name: Create /etc/hosts with VM IP addresses + become: yes template: src=hosts.j2 dest=/etc/hosts + +- name: Create /etc/ansible/hosts file + become: yes + template: + src=ansible_hosts.j2 + dest=/etc/ansible/hosts +