Timeline for Ansible reports "permission denied" when issuing command on remote host
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 27, 2020 at 10:42 | comment | added | user7568519 |
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)]
|
|
Jun 3, 2016 at 16:45 | comment | added | Howard Lee |
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
|
|
Jun 3, 2016 at 16:44 | vote | accept | Howard Lee | ||
Jun 2, 2016 at 18:03 | history | answered | Deltik | CC BY-SA 3.0 |