Skip to content

Commit 4fe4e79

Browse files
danpawlikamartyasinha
authored andcommitted
Add ansible_ssh_args and ansible_port into cifmw_helpers parse inventory
The ansible_ssh_args and ansible_port argument might be required to establish connection to some host. Signed-off-by: Daniel Pawlik <[email protected]>
1 parent c1f373a commit 4fe4e79

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

roles/cifmw_helpers/tasks/parse_inventory.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
name: "{{ host_item.key }}"
55
groups: "{{ group_item.key }}"
66
ansible_host: "{{ host_item.value.ansible_host | default(omit) }}"
7+
ansible_port: "{{ host_item.value.ansible_port | default(omit) }}"
78
ansible_ssh_common_args: "{{ host_item.value.ansible_ssh_common_args | default(omit) }}"
9+
ansible_ssh_args: "{{ host_item.value.ansible_ssh_args | default(omit) }}"
810
ansible_ssh_private_key_file: "{{ host_item.value.ansible_ssh_private_key_file | default(omit) }}"
911
ansible_user: "{{ host_item.value.ansible_user | default(omit) }}"
1012
ansible_connection: "{{ host_item.value.ansible_connection | default(omit) }}"

0 commit comments

Comments
 (0)