Hey Folks, Trying to get sh int des | i <description> by ansible.
my ansible play is adding the special character which didn't work on the switch. debug: sample output "commands": [ "sh int des |i \"host161|host162\"" I would like to remove the special character \"\"" in the playbook itself. is there a way to do ? play: rgs.txt contains two lines hostname host161 host162 vars: result: "{{ lookup('file', 'rgs.txt') | regex_replace('[\r\n\t]+','|') }}" - name: Run network commands ios_command: commands: sh int des |i "{{ result }}" Thanks, Ramesh -- 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-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6a133585-60b2-4180-a604-fd8699ff4696n%40googlegroups.com.