Skip to content

Instantly share code, notes, and snippets.

@tacahiroy
Created November 11, 2019 03:16
Show Gist options
  • Save tacahiroy/3600e7cfafa4a18b32b379be0cca247b to your computer and use it in GitHub Desktop.
Save tacahiroy/3600e7cfafa4a18b32b379be0cca247b to your computer and use it in GitHub Desktop.
Set variable when the target vesion is EL 7
ansible_distribution_major_version_when_var_is_7:
my_packages: "{{ lookup('flattened', my_packages, 'ShellCheck') }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment