Hi,
I'm trying to run a command on a remote server, multiple times and need to set a fact or register different names for each. Here's the code I have for running the command:
- name: 'run opctest status on PG'
win_command: "opctest /cust {{ tenant_code }} /node {{ item }}"
args:
stdin: status
register: opctest_out
ignore_errors: yes
with_items:
- "{{ pg_list }}"
pg_list is a listing of 3 strings ('PG1A', 'PG100A','PG101A'). I'd like to name them after each of these, for example, something along the lines of "opctest_out_pg101a"
I can't find a way to do that. Does anyone have any suggestions?
Thanks,
Kevin