Alex Wanderley Application and Infrastructure Analyst II Financial and Corporate Services | Open City and Technology
780-496-4156 Office 780-819-0273 Mobile City of Edmonton Century Place, 19th Floor 9803 102A Avenue NW Edmonton AB, T5J 3A3
All information contained in this email post is proprietary to the City of Edmonton, confidential and intended only for the addressed recipient. If you have received this post in error, please disregard the contents, inform the sender of the misdirection, and remove it from your system. The copying, dissemination or distribution of this email, if misdirected, is strictly prohibited. |
vars: locmap: locationX: snmpd.conf-X locationY: snmpd.conf-Y locationZ: snmpd.conf-ZThen your set_fact becomes "snmpd_conf: '{{ locmap[grep_result.stdout_lines[0]] }}'
The contents of this message and any attachment(s) are confidential, proprietary to the City of Edmonton, and are intended only for the addressed recipient. If you have received this in error, please disregard the contents, inform the sender of the misdirection, and remove it from your system. The copying, dissemination, or distribution of this message, if misdirected, is strictly prohibited. --
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CADp8UUQB4UhuBYY1ujzs%2BJpyyV8WTr6-xu4bV8uFNWz3vmMB1g%40mail.gmail.com.
-- Todd
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a45140e9-6b7f-44e2-a4e4-4240d76f2fba%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CADp8UUQCOhc_5GiJb0YMduvkFpwcU9zKqAFS3MnSO3T3y6qDxg%40mail.gmail.com.
% cat serverlist.txt
serverA flavor locationX owner
serverB flavor locationY owner
serverC flavor locationZ owner
% awk '$1 ~ /serverB/ { print $3; }' serverlist.txt
locationY
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/AF495547-15F6-4E50-ACD2-D2B1F1A75945%40nist.gov.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAKtKohSt77zCi2ueEjiAQmq6oa6dTF02OJbsfqw%2B77MVYnzAQA%40mail.gmail.com.