What does become: true do for this Ansible task?
- name: restart sshd service: name=sshd state=restarted become: true
- Turns the task into a handler
- Runs the task on the control node
- Runs it with escalated privileges
- Retries the task until it succeeds
become enables privilege escalation, by default sudo to root, which is needed to manage system services.
Play DevOps ▸