Hi,
On Wed, Mar 30, 2022 at 02:36:59PM +0200, Jörg Kastning wrote:
Hi,
Running `tox -e yamllint` in my role directory shows that the following
lines in my tasks/main.yml are too long:
~~~
- name: Perform platform/version specific tasks
include_tasks: "{{ lookup('first_found', __rolename_ff_params) }}"
vars:
__rolename_ff_params:
files:
- "{{ ansible_facts['distribution'] }}_{{
ansible_facts['distribution_version'] }}.yml"
- "{{ ansible_facts['distribution'] }}_{{
ansible_facts['distribution_major_version'] }}.yml"
~~~
The last two lines are too long. I've attached the code as well, in case my
MUA messes with the linebreaks here.
How could I solve this? Can I use Multi Line Strings in YAML dictionaries
too?
Could someone give an example please on how to solve this?
https://github.com/linux-system-roles/timesync/pull/47/files
P.