Thank you. Now playbook doesn`t have syntax errors, but I have a permission
error.
PLAY [group1]
*****************************************************************
GATHERING FACTS
***************************************************************
<172.17.251.236> ESTABLISH CONNECTION FOR USER: user1
<172.17.251.236> REMOTE_MODULE setup
<172.17.251.236> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o
ControlPersist=60s -o ControlPath="/root/.ansible/cp/ansible-ssh-%h-%p-%r"
-o Port=22 -o KbdInteractiveAuthentication=no -o
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
-o PasswordAuthentication=no -o User=user1 -o ConnectTimeout=10
172.17.251.236 /bin/sh -c 'mkdir -p
$HOME/.ansible/tmp/ansible-tmp-1444203780.43-167481022998325 && chmod a+rx
$HOME/.ansible/tmp/ansible-tmp-1444203780.43-167481022998325 && echo
$HOME/.ansible/tmp/ansible-tmp-1444203780.43-167481022998325'
fatal: [172.17.251.236] => SSH Error: Permission denied
(publickey,password).
while connecting to 172.17.251.236:22
It is sometimes useful to re-run the command using -vvvv, which prints SSH
debug output to help diagnose the issue.
TASK: [ensure update]
*********************************************************
FATAL: no hosts matched or all hosts have already failed -- aborting
PLAY RECAP
********************************************************************
to retry, use: --limit @/root/test1.retry
172.17.251.236 : ok=0 changed=0 unreachable=1 failed=0
I guess there might ba problem with SSH key and I have to make it and save
in directory /root/.ansible/cp/. But SSH agent can`t open a connection to
my authentication agent. Do you know, where does the trouble lie?
On Tuesday, October 6, 2015 at 3:42:11 PM UTC+3, Brian Coca wrote:
>
> you need a space after :
>
> apt: update_cache=yes upgrade=full cache_valid_time=3600
>
>
>
> --
> Brian Coca
>
On Tuesday, October 6, 2015 at 3:42:11 PM UTC+3, Brian Coca wrote:
>
> you need a space after :
>
> apt: update_cache=yes upgrade=full cache_valid_time=3600
>
>
>
> --
> Brian Coca
>
On Tuesday, October 6, 2015 at 3:42:11 PM UTC+3, Brian Coca wrote:
>
> you need a space after :
>
> apt: update_cache=yes upgrade=full cache_valid_time=3600
>
>
>
> --
> Brian Coca
>
--
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/a6cbe820-5cfc-4b5b-a995-9140c714bfcb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.