[ansible-project] When Or statement

2020-11-25 Thread colli...@gmail.com
In an ansible play, is "or" not supported with conditional statements? I have a task that is searching a variable for 2 values. The when statements work alone, but with "or" it runs but doesn't do what I am expecting. Here is the task, is my syntax wrong or is it just not supported? - - n

[ansible-project] CLI_Parse and loops

2020-11-19 Thread colli...@gmail.com
Hello everyone. I am having some issues with using the information from cli_parser output. ''' - name: Create po_ch variable ansible.netcommon.cli_parse: command: "show etherchannel summary" parser: name: ansible.netcommon.pyats set_fact: po_ch t

[ansible-project] IP List Contain

2020-11-03 Thread colli...@gmail.com
Hopefully someone can assist - this seems like it should be a simple thing. vars: ips: [1.1.1.1,2.2.2.2] tasks: -name: Get Tacacs info cisco.ios.ios_command commands: "show tacacs" register: tacacas -name: Run command based on tacacs var cisco.ios.config: lines: - do s

[ansible-project] Create a list of Failed tasks

2020-10-23 Thread colli...@gmail.com
Hello, I am trying to get a list of devices that are out of compliance with Cisco licensing. I would like to take failed out of compliance devices and add them to a list. Then send it to Microsoft Teams. What I am looking for is a list to just send to Teams once, instead of trying to send