username and password

Hello ,

I am trying to define my username and password as variable in my playbook
rather than run my playbook by adding the argument for username and password at the command line
e.g ansible-playbook -u dokuwa1 -askpass apache.yml

this is my playbook

hosts: all
tasks:

  • name: install apache2
    apt: name=apache2 state=present update_cache=yes

thanks