On 26. mai 2016 18:22, Sam Sen wrote:
Does not work:
- name: restart web server
shell: /etc/init.d/aria_services restart
when: install_rpm_results|success
register: restart_services_result
failed_when: "'FAIL' in restart_services_result.stdout"
ignore_errors: True
become_user: root
become_user only says which user to be used. To actually use become/sudo
you need to add become: true
become_user default to root so you do not need to specify it if you like
having less code.
--
Kai Stian Olstad
--
You received this message because you are subscribed to the Google Groups "Ansible
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/85d88b34-e40b-65ef-c042-86cc22b35f0f%40olstad.com.
For more options, visit https://groups.google.com/d/optout.