Forum Discussion
hmm I dont know where the transport: rest is coming from. Its not in my code anywhere (which I've re-attched)
I've removed the grep. Still same error
---
- name: check DEFAULT and client cipher strings
gather_facts: false
hosts: all
vars:
provider:
password: "{{ BACKEND_PASSWORD }}"
server: "{{ inventory_hostname }}"
user: "{{ BACKEND_USERNAME }}"
server_port: 22
transport: cli
validate_certs: false
cipher_string: des
ignore_cipher: "!des"
ignore_cipher2: "!3des"
tasks:
- name: get virtual list
bigip_command:
commands:
- tmsh show /sys version | grep "Version "
provider: "{{ provider }}"
delegate_to: localhost
register: software_version_out
- debug:
msg: "{{ software_version_out.stdout }}"
- name: run the checks
block:
- name: check the default cipher
bigip_command:
commands:
- bash
- tmm --clientciphers DEFAULT
provider: "{{ provider }}"
delegate_to: localhost
register: cipher_out
ignore_errors: true
- debug:
msg: "{{ cipher_out }}"
when: software_version_out.stdout != '15.1.4.1'
and I still get the same error:
fatal: [192.168.196.100 -> localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"chdir": null,
"commands": [
"bash",
"tmm --clientciphers DEFAULT"
],
"interval": 1,
"match": "all",
"provider": {
"auth_provider": null,
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"server": "192.168.196.100",
"server_port": 22,
"ssh_keyfile": null,
"timeout": null,
"transport": "cli",
"user": "root",
"validate_certs": false
},
"retries": 10,
"transport": "rest",
"wait_for": null,
"warn": true
}
},
"msg": "tmsh -c \"tmm --clientciphers DEFAULT\"\r\nSyntax Error: unexpected argument \"tmm\"\r\n[root@bigipckn:Active:Standalone] config # "
}