Sudo is too old.
This works:

---
- hosts: appsrv98

  tasks:
    - name: test (1/2)
      command: uptime

    - name: test (2/2)
      command: uptime
      become: true
      become_flags: -H -S

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/bcab8adb-cfa5-41d8-9146-76fd69e13150%40googlegroups.com.

Reply via email to