I'd like to be able to define a task with default parameters:
- name: Create a new user
user:
name: "default"
password: "password"
state: present
Then, from my playbook, I'd like to be able to do something like this:
roles:
- role: common
vars:
name: "frank"
shell: "/bin/zsh"
...and have it create the user "frank", with the password "password" and the /bin/zsh shell. Is it possible to override task parameters from an Ansible playbook? (For the record, the above doesn't work, I tried it.)