Error saying ERROR sudo pass is not a legal parameter at this level in an Ansible Playbook

0 votes

I'm trying to run an ansible playbook and I end up with this error:

ERROR: sudo_pass is not a legal parameter at this level in an Ansible Playbook

My playbook:

---
- name: Server
  hosts: node1
  sudo_pass: ubuntu
  roles:
    - dbserver
Jan 29, 2019 in Ansible by Neel
771 views