Hi guys
I’m running from source and still getting this problem - is anyone else able to use @ signs in services?
task:
- name: enable and start eth0 service
service: name=netctl@eth0.service state=started enabled=yes
error:
TASK: [network | enable and start eth0 service] *******************************
<192.168.1.253> ESTABLISH CONNECTION FOR USER: root
<192.168.1.253> REMOTE_MODULE service name=netctl@eth0.service state=started enabled=yes
<192.168.1.253> EXEC [‘sshpass’, ‘-d10’, ‘ssh’, ‘-C’, ‘-tt’, ‘-vvv’, ‘-o’, ‘ControlMaster=auto’, ‘-o’, ‘ControlPersist=60s’, ‘-o’, ‘ControlPath=/home/alex/.ansible/cp/ansible-ssh-%h-%p-%r’, ‘-o’, ‘Port=22’, ‘-o’, ‘GSSAPIAuthentication=no’, ‘-o’, ‘PubkeyAuthentication=no’, ‘-o’, ‘User=root’, ‘-o’, ‘ConnectTimeout=10’, ‘192.168.1.253’, “/bin/sh -c ‘mkdir -p $HOME/.ansible/tmp/ansible-tmp-1391803906.5-98641080919224 && echo $HOME/.ansible/tmp/ansible-tmp-1391803906.5-98641080919224’”]
<192.168.1.253> PUT /tmp/tmpxsF3YP TO /root/.ansible/tmp/ansible-tmp-1391803906.5-98641080919224/service
<192.168.1.253> EXEC [‘sshpass’, ‘-d10’, ‘ssh’, ‘-C’, ‘-tt’, ‘-vvv’, ‘-o’, ‘ControlMaster=auto’, ‘-o’, ‘ControlPersist=60s’, ‘-o’, ‘ControlPath=/home/alex/.ansible/cp/ansible-ssh-%h-%p-%r’, ‘-o’, ‘Port=22’, ‘-o’, ‘GSSAPIAuthentication=no’, ‘-o’, ‘PubkeyAuthentication=no’, ‘-o’, ‘User=root’, ‘-o’, ‘ConnectTimeout=10’, ‘192.168.1.253’, “/bin/sh -c ‘/usr/bin/python2 /root/.ansible/tmp/ansible-tmp-1391803906.5-98641080919224/service; rm -rf /root/.ansible/tmp/ansible-tmp-1391803906.5-98641080919224/ >/dev/null 2>&1’”]
failed: [192.168.1.253] => {“failed”: true, “item”: “”}
msg: Failed to issue method call: Unit name netctl@.service is not valid.
FATAL: all hosts have already failed – aborting
ansible version:
ansible 1.5 (devel 2d88246c9d) last updated 2014/02/07 20:06:49 (GMT +100)