Fix interface. Add codydev and ns to hosts. Skip host key checking.

This commit is contained in:
2018-03-16 16:41:42 -04:00
parent fa3ecbad9c
commit f6ce724c83
3 changed files with 3 additions and 2 deletions

1
hosts
View File

@@ -9,6 +9,7 @@
#guacamole.wimer.local
#fileserver.wimer.local
#test2 ansible_host=10.0.0.152
ns.wimer.local ansible_host=10.0.0.204
[developer-machines]
codydev ansible_host=10.0.0.207

View File

@@ -7,7 +7,7 @@
- name: Copy interface cfg file
vars:
interface_name: eth0
template: src=../roles/configure-interfaces/templates/eth.cfg.j2 dest=/etc/network/interfaces.d/'{{ interface_name }}'.cfg
template: src=../roles/configure-interfaces/templates/eth.cfg.j2 dest=/etc/network/interfaces.d/{{ interface_name }}.cfg
- name: Up down interface
raw: ifdown {{ interface_name }} && ifup {{ interface_name }}

View File

@@ -2,5 +2,5 @@
#keep adding dirname's to go up more directories.
project_dir="$(dirname $( dirname $(readlink -f ${BASH_SOURCE[0]})))"
#ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i ${project_dir}/hosts ${project_dir}/playbooks/lxc-test.yml
ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i ${project_dir}/hosts ${project_dir}/playbooks/kvm.yml
ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i ${project_dir}/hosts ${project_dir}/playbooks/kvm.yml -vvvv
ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i ${project_dir}/hosts ${project_dir}/playbooks/site.yml