diff options
author | 2018-03-09 16:31:13 +0000 | |
---|---|---|
committer | 2018-03-10 09:51:02 +0000 | |
commit | 2ff7ba7b99e5b5e8da83c0bc1f63c71669d7e972 (patch) | |
tree | 274dc1b564976680c449be24ad3798d656b4a768 /xci/playbooks/roles/configure-network | |
parent | f76dbbfafcdbc6acf6948f8dee60671211774567 (diff) |
xci: roles: configure-network: Avoid passing empty string to module
The package module gets upset if we pass it an empty string as a package
name
Mar 09 15:15:33 TASK [configure-network : Ensure networking packages are present] **************
Mar 09 15:15:49 fatal: [opnfv]: FAILED! => {"changed": false, "failed":
true, "msg": "No package matching '' found available, installed or
updated", "rc": 126, "results": ["iproute-3.10.0-87.el7.x86_64 providing
iproute is already installed", "No package matching '' found available,
installed or updated"]}
As such, lets pass an existing package for non-Debian distros to make
the module happy.
Change-Id: Ib1128057097193278cfe50f79daf35332b54e781
Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'xci/playbooks/roles/configure-network')
-rw-r--r-- | xci/playbooks/roles/configure-network/tasks/main.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xci/playbooks/roles/configure-network/tasks/main.yml b/xci/playbooks/roles/configure-network/tasks/main.yml index 21f213cb..01edf459 100644 --- a/xci/playbooks/roles/configure-network/tasks/main.yml +++ b/xci/playbooks/roles/configure-network/tasks/main.yml @@ -17,7 +17,7 @@ network_packages: - bridge-utils - "{{ (ansible_pkg_mgr in ['zypper', 'apt']) | ternary('iproute2', 'iproute') }}" - - "{{ (ansible_pkg_mgr == 'apt') | ternary('vlan', '') }}" + - "{{ (ansible_pkg_mgr == 'apt') | ternary('vlan', 'bridge-utils') }}" - iptables - name: Ensure networking packages are present |