On 5/22/20 10:56 AM, コジョンウク wrote:
> Here is my ansible Version
> 
> |
> ansible 2.9.7
> 
>   config file =/Users/jeongwookko/git/ansible.cfg
> 
>   configured modulesearch path 
> =['/Users/jeongwookko/.ansible/plugins/modules','/usr/share/ansible/plugins/modules']
> 
>   ansible python modulelocation 
> =/usr/local/Cellar/ansible/2.9.7/libexec/lib/python3.8/site-packages/ansible
> 
>   executable location =/usr/local/bin/ansible
> 
>   python version 
> =3.8.2(default,Mar112020,00:29:50)[Clang11.0.0(clang-1100.0.33.17)]
> 
> |
> 
> 
> 
> cat ansible.cfg
> 
> 
> |
> [defaults]
> 
> deprecation_warnings=False
> 
> hostfile =hosts/main
> 
> ask_sudo_pass =False
> 
> ask_pass =True
> 
> pipelining =True
> 
> gatherging =True
> 
> poll_interval=20
> 
> record_host_keys=False
> 
> fact_caching_timeout =86400
> 
> transport =ssh
> 
> forks=100
> 
> log_path=ansible.log
> 
> poll_intervals=20
> 
> display_skipped_hosts =False
> 
> host_key_checking =False
> 
> sudo_flags =-HEs
> 
> [ssh_connection]
> 
> ssh_args=-o ForwardAgent=yes -o StrictHostKeyChecking=no-o 
> UserKnownHostsFile=/dev/null-o LogLevel=ERROR -o
> ConnectTimeout=120
> 
> scp_if_ssh=True
> 
> #ansible_ssh_private_key_file=.
> |
> 
> 
> 
> when ansible-playbook
> 
> 
> |
> 
> task path:/Users/jeongwookko/git/roles/site/symfony/tasks/main.yml
> 
> -git:[email protected]:xxxxxxx version={{site_branch 
> }}dest={{site_repo_root }}accept_hostkey=yes force=no
> 
> -get_url:url=https://getcomposer.org/installer dest=/tmp/composer_installer 
> mode=0777
> 
> -shell:/usr/bin/php /tmp/composer_installer --install-dir=/usr/bin
> 
> -command:mv /usr/bin/composer.phar /usr/bin/composer
> 
> -composer:command=install working_dir={{site_repo_root }}no_dev=no
> 
> |
> 
> 
> 
> 
> *it occurs error below *
> 
> 
> |
> TASK [site/symfony
> :git]*****************************************************************************************************************************************************************
> 
> task path:/Users/jeongwookko/git/roles/site/symfony/tasks/main.yml:1
> 
> Thefull traceback is:
> 
> WARNING:Thebelow traceback may *not*be related to the actual failure.
> 
>   
> File"/tmp/ansible_git_payload_0MMVFf/ansible_git_payload.zip/ansible/modules/source_control/git.py",line
>  461,inclone
> 
>   File"/usr/lib64/python2.6/os.py",line 157,inmakedirs
> 
>     mkdir(name,mode)
> 
> fatal:[xxxxxxx]:FAILED!=>{
> 
>     "changed":false,
> 
>     "cmd":"/usr/bin/git clone --origin origin '' /var/www/xxxxxxx",
> 
>     "invocation":{
> 
>         "module_args":{
> 
>             "accept_hostkey":true,
> 
>             "archive":null,
> 
>             "bare":false,
> 
>           �� "clone":true,
> 
>             "depth":null,
> 
>             "dest":"/var/www/xxxxxxx",
> 
>             "executable":null,
> 
>             "force":false,
> 
>             "gpg_whitelist":[],
> 
>             "key_file":null,
> 
>             "recursive":true,
> 
>             "reference":null,
> 
>             "refspec":null,
> 
>             "remote":"origin",
> 
>             "repo":"[email protected]:xxxxxxx",
> 
>             "separate_git_dir":null,
> 
>             "ssh_opts":null,
> 
>             "track_submodules":false,
> 
>             "umask":null,
> 
>             "update":true,
> 
>             "verify_commit":false,
> 
>             "version":"dev_20200521"
> 
>         }
> 
>     },
> 
>     "msg":"Permission denied (publickey).\r\nfatal: The remote end hung up 
> unexpectedly",
> 
>     "rc":128,
> 
>     "stderr":"Permission denied (publickey).\r\nfatal: The remote end hung up 
> unexpectedly\n",
> 
>     "stderr_lines":[
> 
>         "Permission denied (publickey).",
> 
>         "fatal: The remote end hung up unexpectedly"
> 
>     ],
> 
>     "stdout":"Initialized empty Git repository in 
> /var/www/controlWeb/.git/\n",
> 
>     "stdout_lines":[
> 
>         "Initialized empty Git repository in /var/www/controlWeb/.git/"
> 
>     ]
> 
> 
> 
> }
> 
> |
> 
> 
> 
> *please help me anybody*
> 
> *
> *
> 
> *how to solve it?*
> 
> *
> *
> 
> *I did search it about two days but I can't find any solution of it*

It looks to me that the ansible user on the target machine doesn't have access 
to the Git repository (lack of private
key?).

Regards
         Racke

> 
> *
> *
> 
> *Best Regards*
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/1eb3a381-703e-4a64-ad21-9714085bcc78%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/1eb3a381-703e-4a64-ad21-9714085bcc78%40googlegroups.com?utm_medium=email&utm_source=footer>.


-- 
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5b3a2393-70d4-3eab-b94a-cf2f32e58c36%40linuxia.de.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to