summaryrefslogtreecommitdiffstats
path: root/xci/playbooks/configure-opnfvhost.yml
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2017-08-24 13:33:38 +0100
committerMarkos Chandras <mchandras@suse.de>2017-08-25 10:31:53 +0100
commite8f6f7180dc5d78520d3ab298f279a8dd1b8795b (patch)
tree3a5191018cebbe20ae48512d6260748893953721 /xci/playbooks/configure-opnfvhost.yml
parent5ea26a2277389ec42b6f22e02dbd4c04796ee304 (diff)
xci: playbooks: configure-network: Prepare for multi-distro support
Move the network templates inside the role since it's their only user. Moreover, remove the arguments when we include the role in playbooks and move the distro logic to the role itself. Change-Id: I938686fdb31b9896b9e97339799a0edd4c34bf36 Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'xci/playbooks/configure-opnfvhost.yml')
-rw-r--r--xci/playbooks/configure-opnfvhost.yml3
1 files changed, 1 insertions, 2 deletions
diff --git a/xci/playbooks/configure-opnfvhost.yml b/xci/playbooks/configure-opnfvhost.yml
index 53e34418..7bc434d7 100644
--- a/xci/playbooks/configure-opnfvhost.yml
+++ b/xci/playbooks/configure-opnfvhost.yml
@@ -48,8 +48,7 @@
- ../var/flavor-vars.yml
- ../var/opnfv.yml
roles:
- # TODO: this only works for ubuntu/xenial and need to be adjusted for other distros
- - { role: configure-network, when: ansible_distribution_release == "xenial", src: "../template/opnfv.interface.j2", dest: "/etc/network/interfaces" }
+ - role: configure-network
tasks:
- name: generate SSH keys
shell: ssh-keygen -b 2048 -t rsa -f /root/.ssh/id_rsa -q -N ""