Hi,
This task is failing:
- name: restart phantom queue processes
service: name=queue enabled=yes state=restarted
sudo: yes
sudo_user: phantom
Ansible v1.5.4 on Ubunutu 12.04 (note that I get the same error when omitting “sudo:” and “sudo_user:” options)
Error:
<phantom-dal2.ava.ai> EXEC [‘ssh’, ‘-C’, ‘-tt’, ‘-vvv’, ‘-o’, ‘ControlMaster=auto’, ‘-o’, ‘ControlPersist=60s’, ‘-o’, ‘ControlPath=/home/ubuntu/.ansible/cp/ansible-ssh-%h-%p-%r’, ‘-o’, ‘Port=22’, ‘-o’, ‘IdentityFile=creds/ubuntu_phantom_dal2’, ‘-o’, ‘KbdInteractiveAuthentication=no’, ‘-o’, ‘PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey’, ‘-o’, ‘PasswordAuthentication=no’, ‘-o’, ‘ConnectTimeout=10’, ‘phantom-dal2.ava.ai’, “/bin/sh -c ‘rm -rf /tmp/ansible-tmp-1400692488.26-212551300863070/ >/dev/null 2>&1’”]
failed: [phantom-dal2.ava.ai] => {“failed”: true, “item”: “”}
msg: stop: Unable to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
start: Unable to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
The upstart script on the host server:
start on runlevel [2345]
stop on runlevel [06]
respawn
respawn limit 4 2
setuid phantom
script
cd /mnt/git/phantom
cd /home/grim/phantom
php queue.php > /dev/null 2>&1
end script
Any suggestions would be greatly appreciated, thanks.
Mike