How do you like to format long Jinja strings? #2255
Unanswered
cognifloyd
asked this question in
General
Replies: 1 comment
-
Here are examples that adds a line break after - set_fact:
za_ver: "{{ ansible_facts.packages['zabbix-agent']|
map(attribute='version')|
list }}"
when: "'zabbix-agent' in ansible_facts.packages"
- set_fact:
za_ver: "{{ ansible_facts.packages['zabbix-agent']|
json_query('[].version') }}"
when: "'zabbix-agent' in ansible_facts.packages" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In order to finish #2066, I need to determine how we should format long Jinja strings.
Think of tools like
black
andprettier
which do opinionated reformatting. With that in mind please answer these questions and provide examples:Beta Was this translation helpful? Give feedback.
All reactions