From 72025672bcda5a608aeda30ec416c2c43922cb34 Mon Sep 17 00:00:00 2001 From: Vadim Rutkovsky Date: Fri, 2 Feb 2018 10:56:43 +0100 Subject: Don't use 'omit' for package module 'name' param is required and can't be skipped. 'when' is used instead --- playbooks/init/base_packages.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playbooks/init/base_packages.yml b/playbooks/init/base_packages.yml index 0a730a88a..81f4dd183 100644 --- a/playbooks/init/base_packages.yml +++ b/playbooks/init/base_packages.yml @@ -16,8 +16,9 @@ - iproute - "{{ 'python3-dbus' if ansible_distribution == 'Fedora' else 'dbus-python' }}" - "{{ 'python3-PyYAML' if ansible_distribution == 'Fedora' else 'PyYAML' }}" - - "{{ 'python-ipaddress' if ansible_distribution != 'Fedora' else omit }}" + - "{{ 'python-ipaddress' if ansible_distribution != 'Fedora' else '' }}" - yum-utils + when: item != '' register: result until: result is succeeded -- cgit v1.2.3