Skip to content

Make playbook compatible with new Ansible-core type system#2046

Open
AlanCoding wants to merge 1 commit intoansible:develfrom
AlanCoding:data_tagging
Open

Make playbook compatible with new Ansible-core type system#2046
AlanCoding wants to merge 1 commit intoansible:develfrom
AlanCoding:data_tagging

Conversation

@AlanCoding
Copy link
Member

SUMMARY

In recent release, ansible-core got pickier about types. CLI arguments of -e are always string, which kind of causes this problem, so ports from CLI need to be converted to ints.

ISSUE TYPE
  • Bug, Docs Fix or other nominal change

development_mode: "{{ development_mode | default(omit) | bool }}"
image_pull_policy: "{{ image_pull_policy | default(omit) }}"
nodeport_port: "{{ nodeport_port | default(omit) }}"
nodeport_port: "{{ nodeport_port | default(omit) | int }}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
nodeport_port: "{{ nodeport_port | default(omit) | int }}"
nodeport_port: "{{ nodeport_port | ternary(nodeport_port | int, omit) }}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants