Open rangsan opened 7 years ago
Please someone help me to solve this issue. I stuck for a week.
`TASK [file] **** task path: /tmp/rundeck/ansible-hosts8961719020255916456/gather-hosts.yml:7 Using module file /usr/lib/python2.6/site-packages/ansible/modules/files/file.py
I've been waiting for months for a similar issue (#95), I can't say the person(s) who write this thing care to respond to user issues too much.
Not sure what I would do if I were you...
[sg-senmon-6001 -> localhost] indicates the task is being executed in local host , so you are getting the sudo tty error in rundeck server.
Comment the line "Defaults requiretty" from the /etc/sudoers files in rundeck server , see if this helps
@Sush002 this is not supposed to run on localhost as my inventory is not configured localhost.
I think this is about andible file copier plugin. It's strange that I can't configure the file copier plugin in the UI, the value always change to default.
This is the log from service.log.
procArgs: [ansible-playbook, gather-hosts.yml, --inventory-file=/var/lib/rundeck/etc/sensu/inventory, -vvvv, --extra-vars=@/tmp/rundeck/ansible-runner700351975359969651extra-vars, --private-key=/tmp/rundeck/ansible-runner1113985833019383943id_rsa, --user=ansible, --timeout=60] Using /var/lib/rundeck/etc/ansible.cfg as config file Loading callback plugin default of type stdout, v2.0 from /usr/lib/python2.6/site-packages/ansible/plugins/callback/init.pyc
PLAYBOOK: gather-hosts.yml ***** 1 plays in gather-hosts.yml
PLAY [all] *****
TASK [Gathering Facts] ***** Using module file /usr/lib/python2.6/site-packages/ansible/modules/system/setup.py
Hello! The same problem with Ansible Resource Model - when trying to get nodes from ansible, it runs some ansible task on localhost with sudo (of course, it does not have sudo on localhost and will not have any due to security reasons). I found /var/lib/rundeck/.ansible/tmp/ansible-tmp-*/file.py file, which tries to unzip some of the embedded zip data... But why on localhost? Is he trying to deploy a wrapper for a rundeck like this?
Rundeck Details
The node is empty on rundeck UI. However I did take a look at service.log it was gathering the facts from every nodes in my inventory.
rundeck is an owner of home path. I can also ping all servers with this command su rundeck -s /bin/bash -c "ansible all -m ping"
I created symlink of ansible.cfg in /etc/ansible/ansifile.cfg to /opt/ansible/etc/ansible.cfg inside rundeck user. I also have environment for rundeck user point to ANSIBLE_CONFIG=/opt/ansible/etc/ansible.cfg.
But still have no nodes appears in rundeck UI. Could someone please shed the light on me? Thanks so much.