diff options
author | 2017-08-24 13:33:38 +0100 | |
---|---|---|
committer | 2017-08-25 10:31:53 +0100 | |
commit | e8f6f7180dc5d78520d3ab298f279a8dd1b8795b (patch) | |
tree | 3a5191018cebbe20ae48512d6260748893953721 /xci/playbooks/configure-targethosts.yml | |
parent | 5ea26a2277389ec42b6f22e02dbd4c04796ee304 (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-targethosts.yml')
-rw-r--r-- | xci/playbooks/configure-targethosts.yml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xci/playbooks/configure-targethosts.yml b/xci/playbooks/configure-targethosts.yml index 50da1f22..88da1312 100644 --- a/xci/playbooks/configure-targethosts.yml +++ b/xci/playbooks/configure-targethosts.yml @@ -13,8 +13,7 @@ - ../var/{{ ansible_os_family }}.yml - ../var/flavor-vars.yml roles: - # TODO: this only works for ubuntu/xenial and need to be adjusted for other distros - - { role: configure-network, src: "../template/controller.interface.j2", dest: "/etc/network/interfaces" } + - role: configure-network # we need to force sync time with ntp or the nodes will be out of sync timewise - role: synchronize-time @@ -24,8 +23,7 @@ - ../var/{{ ansible_os_family }}.yml - ../var/flavor-vars.yml roles: - # TODO: this only works for ubuntu/xenial and need to be adjusted for other distros - - { role: configure-network, src: "../template/compute.interface.j2", dest: "/etc/network/interfaces" } + - role: configure-network # we need to force sync time with ntp or the nodes will be out of sync timewise - role: synchronize-time |