[image: Screenshot 2021-08-05 at 09.40.54.png]
without jenkins pipeline
четвер, 5 серпня 2021 р. о 09:41:47 UTC+3 Fhf a пише:

> HELLO ALL
> I have problem with ansible ping from jenkins pipeline
> I try using 
> ansible -i hosts prod -m ping
> but I receive error
>
> this is log from jenkins pipeline[image: Screenshot 2021-08-05 at 
> 09.35.19.png]:
>
> [Pipeline] sh <http://192.168.1.7:8080/job/test_docker_cloud/65/console#> 
> + ansible -i hosts prod -m ping -vvv [DEPRECATION WARNING]: Ansible will 
> require Python 3.8 or newer on the controller starting with Ansible 2.12. 
> Current version: 2.7.17 (default, Feb 27 2021, 15:10:58) [GCC 7.5.0]. This 
> feature will be removed from ansible-core in version 2.12. Deprecation 
> warnings can be disabled by setting deprecation_warnings=False in 
> ansible.cfg. ansible [core 2.11.3] config file = None configured module 
> search path = [u'/home/jenkins/.ansible/plugins/modules', 
> u'/usr/share/ansible/plugins/modules'] ansible python module location = 
> /usr/local/lib/python2.7/dist-packages/ansible ansible collection location 
> = /home/jenkins/.ansible/collections:/usr/share/ansible/collections 
> executable location = /usr/local/bin/ansible python version = 2.7.17 
> (default, Feb 27 2021, 15:10:58) [GCC 7.5.0] jinja version = 2.11.3 libyaml 
> = True No config file found; using defaults host_list declined parsing 
> /home/jenkins/workspace/test_docker_cloud/hosts as it did not pass its 
> verify_file() method script declined parsing 
> /home/jenkins/workspace/test_docker_cloud/hosts as it did not pass its 
> verify_file() method auto declined parsing 
> /home/jenkins/workspace/test_docker_cloud/hosts as it did not pass its 
> verify_file() method Parsed /home/jenkins/workspace/test_docker_cloud/hosts 
> inventory source with ini plugin Skipping callback 'default', as we already 
> have a stdout callback. Skipping callback 'minimal', as we already have a 
> stdout callback. Skipping callback 'oneline', as we already have a stdout 
> callback. META: ran handlers <192.168.1.10> ESTABLISH SSH CONNECTION FOR 
> USER: ubuntu <192.168.1.10> SSH: EXEC ssh -C -o ControlMaster=auto -o 
> ControlPersist=60s -o StrictHostKeyChecking=no -o 
> KbdInteractiveAuthentication=no -o 
> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
> -o PasswordAuthentication=no -o 'User="ubuntu"' -o ConnectTimeout=10 -o 
> ControlPath=/home/jenkins/.ansible/cp/d373db3ccc 192.168.1.10 '/bin/sh -c 
> '"'"'echo ~ubuntu && sleep 0'"'"'' <192.168.1.10> (255, '', "Warning: 
> Permanently added '192.168.1.10' (ECDSA) to the list of known 
> hosts.\r\n+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+\n
>  
> LINUXVMIMAGES.COM\n+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n
>  
> User Name: ubuntu\n Password: ubuntu (sudo su -)\n\n ***OR***\n\n User 
> Name: linuxvmimages\n Password: linuxvmimages.com (sudo su -)\
> [email protected]: Permission denied (publickey,password).\r\n") prod1 
> | UNREACHABLE! => { "changed": false, "msg": "Failed to connect to the host 
> via ssh: Warning: Permanently added '192.168.1.10' (ECDSA) to the list of 
> known 
> hosts.\r\n+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+\n
>  
> LINUXVMIMAGES.COM\n+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n
>  
> User Name: ubuntu\n Password: ubuntu (sudo su -)\n\n ***OR***\n\n User 
> Name: linuxvmimages\n Password: linuxvmimages.com (sudo su -)\
> [email protected]: Permission denied (publickey,password).", 
> "unreachable": true } [Pipeline] }
>
>
> file hosts:
>
>
> [prod]
> prod1 ansible_host=192.168.1.10 ansible_user=ubuntu
>
> target host : 192.168.1.10, user: ubuntu
>
> from terminal all works right
>
> What is missing ?
>

-- 
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/a494e67e-4ac4-4074-98bd-973c79eefad7n%40googlegroups.com.

Reply via email to