ansible all -m user -a 'name=deploy state=present' -b

Category: IaC & Automation

ansible all -m user -a 'name=deploy state=present' -b

Ensure the deploy user exists on all hosts

Creates the deploy user if missing using the user module with -b for account management rights, leaving an existing account untouched. This declarative style is core to Ansible: state the desired end state, not the steps. Related: ansible all -m apt.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.