Hi All,
I am facing issue while installing httpd into remote server from ansible
control server.
I have a control machine and a webserver machine.
My playbook is given below
---
- hosts: xyz.com
sudo: yes
tasks:
- name: install apache2
yum: pkg=httpd state=latest
ran the playbook
ansible-playbook userTest.yml --ask-become-pass
Got below error:
TASK [Gathering Facts]
************************************************************************************************************************************
fatal: [xyz.com]: FAILED! => {"changed": false, "module_stderr": "Shared
connection to xyz.com closed.\r\n", "module_stdout": "\r\n rajrawat is not
allowed to run sudo on xyz.com. This incident will be reported.\r\n",
"msg": "MODULE FAILURE", "rc": 1}
rajrawat is already in the sudoers file.
Please suggest.
--
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/f2a1b3d2-c87e-47f2-98bd-8fa8c5cf62d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.