Zuke
Feb 05, 2021Cirrostratus
Ansible bigip_command module error message
I'm trying to run a simple playbook to create a link in bash:
---
- name: Issue a command on the F5 devices
hosts: all
connection: local
environment:
F5_SERVER: '{{ ansible_host | default(inventory_hostname) }}'
gather_facts: false
tasks:
- name: Issue the command below
bigip_command:
commands:
- 'ln -sf /dev/sr0 /dev/cdrom'
However when I run this playbook, I'm getting an encoding error in AWX:
{
"msg": "'latin-1' codec can't encode characters in position 1-2: ordinal not in range(256)",
"exception": "
I'm wondering if the playbook is trying to run the command in TMOS rather than bash. Googling for that error returns a lot of Stack Overflow posts re: Python and needing to convert or define the script with UTF-8.