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
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.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.