Prechádzať zdrojové kódy

Don't use 'omit' for package module

'name' param is required and can't be skipped. 'when' is used instead
Vadim Rutkovsky 7 rokov pred
rodič
commit
72025672bc
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      playbooks/init/base_packages.yml

+ 2 - 1
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