Become as superuser setting in Ansible inventory hostvars
In inventory:
[ubuntu] ubuntu1 ansible_become=true ansible_become_pass=password