Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 1
    ask-become-pass works. The whole command I use now is ansible-playbook -i hosts site.yml --user admin --ask-pass --become --ask-become-pass
    – Howard Lee
    Commented Jun 3, 2016 at 16:45
  • ansible -i 10.0.250.74, --user admin --ask-pass --become --ask-become-pass all -m ansible.builtin.user -a "append=yes groups=wheel name=ansible" worked for me too. Managed node CentOS release 6.10 (Final) 2.6.32-754.27.1.el6.i686 #1 SMP Tue Jan 28 14:40:29 UTC 2020 i686 with Python 2.6.6, control node macOS Catalina 10.15.7 BuildVersion: 19H2 ansible 2.10.2 python version = 3.8.6 (default, Oct 8 2020, 14:06:32) [Clang 12.0.0 (clang-1200.0.32.2)] Commented Oct 27, 2020 at 10:42