cancel
Showing results for 
Search instead for 
Did you mean: 
Jason90
Cadet
Cadet
  • 957 Views

section 2.8 unsupported parameters for ansible.legacy.uri

I cant finish this exercise because I keep getting the error 

fatal: [localhost]: FAILED! => Unsupported parameters for (ansible.legacy.uri) module....

my code looks like this 

- name: Test intranet web server
  hosts: localhost
  become: false
  tasks:
    - name: Connect to intranet web server
      ansible.builtin.uri:
        url: http://servera.lab.example.com
        return_content: yes
        status_code: 200 

 

1 Reply
ipalagin
Flight Engineer Flight Engineer
Flight Engineer
  • 947 Views

Hi,

The code is correct, make sure you don't have tabs instead of spaces in the yaml file.

With vim: open the file, enter ":retab", save and close, test.

You can also run the playbook with -vvv option, for more verbose error output.

Join the discussion
You must log in to join this conversation.