Skip to content

Commit

Permalink
Merge branch 'master' into fix/14704
Browse files Browse the repository at this point in the history
  • Loading branch information
jackivanov authored Aug 30, 2024
2 parents 7159318 + 346437f commit b3cca97
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,17 @@
set_fact:
server_list: >-
[{% for i in _configs_list.files %}
{% set config = lookup('file', i.path)|from_yaml %}
'{{ config.server }}'
'{{ config.IP_subject_alt_name }}'
{{ ',' if not loop.last else '' }}
{% set config = lookup('file', i.path) | from_yaml %}
{{ {'server': config.server, 'IP_subject_alt_name': config.IP_subject_alt_name} }}
{% endfor %}]
- name: Server address prompt
pause:
prompt: |
Select the server to update user list below:
Select the server to update user list below:
{% for r in server_list %}
{{ loop.index }}. {{ r }}
{% endfor %}
{{ loop.index }}. {{ r.server }} ({{ r.IP_subject_alt_name }})
{% endfor %}
register: _server
when: server is undefined

Expand All @@ -46,7 +44,7 @@
set_fact:
algo_server: >-
{% if server is defined %}{{ server }}
{%- elif _server.user_input %}{{ server_list[_server.user_input | int -1 ] }}
{%- elif _server.user_input %}{{ server_list[_server.user_input | int -1 ].server }}
{%- else %}omit{% endif %}
- name: Import host specific variables
Expand Down

0 comments on commit b3cca97

Please sign in to comment.