Fixed ansible lint issues

This commit is contained in:
Michele Cereda
2022-10-13 16:31:44 +02:00
parent 0d8618e881
commit 1784608fb0

View File

@@ -10,7 +10,12 @@
hosts: all hosts: all
vars: vars:
ansible_distribution_with_underscores: "{{ ansible_distribution | replace(' ', '_') }}" ansible_distribution_with_underscores: "{{ ansible_distribution | replace(' ', '_') }}"
repo_part_distribution: "{{ [ansible_distribution_with_underscores, ansible_distribution_version]|join('_') if ansible_distribution is search('leap', ignorecase=true) else ansible_distribution_with_underscores }}" repo_part_distribution: >-
{{
[ansible_distribution_with_underscores, ansible_distribution_version]|join('_')
if ansible_distribution is search('leap', ignorecase=true)
else ansible_distribution_with_underscores
}}
tasks: tasks:
- name: Add Packman to Zypper's repositories list - name: Add Packman to Zypper's repositories list
become: true become: true