Fix interface. Add codydev and ns to hosts. Skip host key checking.
This commit is contained in:
1
hosts
1
hosts
@@ -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
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user