Earlier in the playbook, I register the values like so: - name: print all usernames to stdout shell: awk -F ':' '{print $1}' ~csit-ansible/files/sortedu${date}.csv register: usernames
- name: print all firstnames to stdout shell: awk -F ':' '{print $2}' ~csit-ansible/files/sortedu${date}.csv register: firstnames
- name: print all lastnames to stdout shell: awk -F ':' '{print $3}' ~csit-ansible/files/sortedu${date}.csv register: lastnames
- name: print all studentids to stdout shell: awk -F ':' '{print $4}' ~csit-ansible/files/sortedu${date}.csv register: studentids
- name: print all dobs to stdout shell: awk -F ':' '{print $5}' ~csit-ansible/files/sortedu${date}.csv register: dobs
Joanna Delaporte
unread,
Sep 24, 2015, 12:57:25 PM9/24/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
I ended up learning a little python3 so I could use it to generate the dictionary for me.