Forum Discussion

rs's avatar
rs
Icon for Nimbostratus rankNimbostratus
Sep 06, 2020

ansible play book not working

Hi ,

 

I am trying to set up the ansible playbook however getting error message while playing it

below is the config of play book:

---

 

- name: An example partition playbook

 hosts: 192.168.1.32 ( ip address of f5 box)

 connection: local

 

 vars:

  validate_certs: no

  username: admin

  password: admin

 

 tasks:

  - name: Create partition

   bigip_partition:

    name: my-partition

    password: "{{ password }}"

    server: 192.168.1.32

    validate_certs: "{{ validate_certs }}"

    user: "{{ username }}"

 

getting error message while running playbook :

# ansible-playbook test.yml

 

PLAY [An example partition playbook] ***********************************************************************************************************************************

 

TASK [Gathering Facts] *************************************************************************************************************************************************

ok: [192.168.1.32]

 

TASK [Create partition] ************************************************************************************************************************************************

fatal: [192.168.1.32]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (bigip_partition) module: password, server, user, validate_certs Supported parameters include: description, name, provider, route_domain, state"}

 

PLAY RECAP *************************************************************************************************************************************************************

10.2.0.32         : ok=1  changed=0  unreachable=0  failed=1  skipped=0  rescued=0  ignored=0

!

ping is successful:

 ansible 192.168.1.32 -m ping

192.168.1.32 | SUCCESS => {

  "ansible_facts": {

    "discovered_interpreter_python": "/usr/bin/python"

  },

  "changed": false,

  "ping": "pong"

}

request you to check and let me know how to fix it

No RepliesBe the first to reply