-
Notifications
You must be signed in to change notification settings - Fork 97
Make edpm-ansible ansible 2.19 compatible #993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| ansible-core>=2.16.1,<2.19.0 | ||
| ansible-core>=2.16.1 | ||
| ansible-runner>=2.4.0 | ||
| ansible-builder>=3.1.0 | ||
| dumb-init>=1.2.2 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,19 @@ | ||
| {%- set ns = namespace(_dport='') %} | ||
| {%- set ns = namespace(dport='') %} | ||
| {%- if 'dport' in rule %} | ||
| {% if rule['dport'] is iterable and (rule['dport'] is not string and rule['dport'] is not mapping) -%} | ||
| {% set ns._dport = rule['dport'] |join(', ') -%} | ||
| {% set ns.dport = rule['dport'] |join(', ') -%} | ||
| {% else -%} | ||
| {% set ns._dport = rule['dport'] -%} | ||
| {% set ns.dport = rule['dport'] -%} | ||
| {% endif -%} | ||
| {%- endif %} | ||
| {#- This is for legacy things - Really, use dport... #} | ||
| {%- if 'port' in rule %} | ||
| {% if rule['port'] is iterable and (rule['port'] is not string and rule['port'] is not mapping) -%} | ||
| {% set ns._dport = rule['port'] |join(', ') -%} | ||
| {% set ns.dport = rule['port'] |join(', ') -%} | ||
| {% else -%} | ||
| {% set ns._dport = rule['port'] -%} | ||
| {% set ns.dport = rule['port'] -%} | ||
| {% endif -%} | ||
| {%- endif %} | ||
| {%- if ns._dport != '' %} | ||
| {{ rule.get('proto', false)|ternary('', 'tcp ') }}dport { {{ ns._dport |replace(':', '-') }} } | ||
| {%- if ns.dport != '' %} | ||
| {{ rule.get('proto', false)|ternary('', 'tcp ') }}dport { {{ ns.dport |replace(':', '-') }} } | ||
| {%- endif %} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,9 +48,9 @@ | |
|
|
||
| - name: Gather facts if they don't exist | ||
| when: | ||
| - ("'ssh_host_key_rsa_public' not in ansible_facts") or | ||
| ("'ssh_host_key_ed25519_public' not in ansible_facts") or | ||
| ("'ssh_host_key_ecdsa_public' not in ansible_facts") | ||
| - ('ssh_host_key_rsa_public' not in ansible_facts) or | ||
| ('ssh_host_key_ed25519_public' not in ansible_facts) or | ||
| ('ssh_host_key_ecdsa_public' not in ansible_facts) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this fixing a separate bug?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, this is broken conditional in 2.19. Conditional result was "'ssh_host_key_rsa_public' not in [...]" of type 'str', which evaluates to True. Conditionals must have a boolean result. Broken conditionals can be temporarily allowed with the |
||
| ansible.builtin.setup: | ||
| gather_subset: | ||
| - "!all" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK this is the actual change to the huge page
the other 3 commits in this pr are unrealted to the subject of the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All commits are related to the jira linked. I'll update the PR when everything is fixed for the jira.