Gitaly number regex error due to hostname in Static inventory
gitaly_number: "{{ ansible_hostname | regex_search('gitaly-(\\d+)', '\\1') | first }}"
returns 'NoneType' object is not iterable
error for Static inventory where Gitaly nodes don't have gitaly-
in their names.
Workaround
Workaround to resolve the issue is to update hostnames on Gitaly nodes to follow pattern of gitaly-X
where X is the number of the node.
Edited by Nailia Iskhakova