Forum Discussion
bowlermj
May 31, 2024Employee
Is the expected output from this going to be in JSON decodable format, or no? I'm trying to run a script that comes with TMOS (temp folder cleanup), and it keeps erroring out with the following.
TASK [Run clean_tmsh_tmp_dirs script against a BIG-IP] ************************************************************************************************************** fatal: [10.1.1.15 -> localhost]: FAILED! => {"changed": false, "msg": "No JSON object could be decoded"}
Here's the playbook:
---
- name: Run clean_tmsh_tmp_dirs script against BIG-IPs
hosts: all
connection: local
vars:
provider:
password:
server: localhost
user: admin
validate_certs: no
server_port: 443
tasks:
- name: Run clean_tmsh_tmp_dirs script against a BIG-IP
bigip_command:
commands: run /util bash -c 'yes yes | /usr/local/bin/clean_tmsh_tmp_dirs'
provider: "{{ provider }}"
delegate_to: localhost
Thanks,
Matt