I'm trying for more than 2 days to make this work, I'm using jenkins with ansible. My ansible role is like this:
the problem is, the above code succeeds but it does not push the image to my docker hub account.
I'm having windows 10, running ansible from a jenkins that is running inside docker container, the docker container has ansible installed also. Docker is installed inside windows 10, and it's api is 192.168.99.100, and from there I can push the image manually and it will work,
but with ansible with docker_image module I could not do it.
Started by user Arkan M. Gerges Anabi
ln -s builds/lastSuccessfulBuild /var/jenkins_home/jobs/ANIM-RAL-Pipeline --- Real Actor Limitation Pipeline/lastSuccessful failed: 71 Protocol error
ln -s builds/lastStableBuild /var/jenkins_home/jobs/ANIM-RAL-Pipeline --- Real Actor Limitation Pipeline/lastStable failed: 71 Protocol error
[Pipeline] node
Running on Jenkins in /var/jenkins_home/workspace/ANIM-RAL-Pipeline --- Real Actor Limitation Pipeline
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Image Registration)
[Pipeline] withCredentials
[Pipeline] {
[Pipeline] withCredentials
[Pipeline] {
[Pipeline] sh
[ANIM-RAL-Pipeline --- Real Actor Limitation Pipeline] Running shell script
+ cd /ansible/erl_real_actor_limitation
+ ansible-playbook app/app.yml -i inventory.jenkins --extra-vars DOCKER_REPO_EMAIL=**** DOCKER_REPO_USERNAME=**** DOCKER_REPO_PASSWORD=**** APP_TAG=1.0.1 --tags register -vvv
ansible-playbook 2.4.1.0
config file = /ansible/erl_real_actor_limitation/ansible.cfg
configured module search path = [u'/home/jenkins/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118]
Using /ansible/erl_real_actor_limitation/ansible.cfg as config file
Parsed /ansible/erl_real_actor_limitation/inventory.jenkins inventory source with ini plugin
PLAYBOOK: app.yml **************************************************************
1 plays in app/app.yml
PLAY [Continous Delivery for real_actor_limitation] ****************************
TASK [Gathering Facts] *********************************************************
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/system/setup.py
<192.168.0.32> ESTABLISH SSH CONNECTION FOR USER: arkan
<192.168.0.32> SSH: EXEC sshpass -d10 ssh -o ControlMaster=no -o ControlPersist=60s -o ForwardAgent=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o Port=22 -o User=arkan -o ConnectTimeout=10 -o ControlPath=/home/jenkins/.ansible/cp/12be3575c6 192.168.0.32 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
<192.168.0.32> (0, '/home/arkan\n', "Warning: Permanently added '192.168.0.32' (ECDSA) to the list of known hosts.\r\n")
<192.168.0.32> ESTABLISH SSH CONNECTION FOR USER: arkan
<192.168.0.32> SSH: EXEC sshpass -d10 ssh -o ControlMaster=no -o ControlPersist=60s -o ForwardAgent=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o Port=22 -o User=arkan -o ConnectTimeout=10 -o ControlPath=/home/jenkins/.ansible/cp/12be3575c6 192.168.0.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/arkan/.ansible/tmp/ansible-tmp-1510047574.27-167135549000441 `" && echo ansible-tmp-1510047574.27-167135549000441="` echo /home/arkan/.ansible/tmp/ansible-tmp-1510047574.27-167135549000441 `" ) && sleep 0'"'"''
<192.168.0.32> (0, 'ansible-tmp-1510047574.27-167135549000441=/home/arkan/.ansible/tmp/ansible-tmp-1510047574.27-167135549000441\n', "Warning: Permanently added '192.168.0.32' (ECDSA) to the list of known hosts.\r\n")
<192.168.0.32> PUT /tmp/tmpvDxEWu TO /home/arkan/.ansible/tmp/ansible-tmp-1510047574.27-167135549000441/setup.py
<192.168.0.32> SSH: EXEC sshpass -d10 sftp -o BatchMode=no -b - -o ControlMaster=no -o ControlPersist=60s -o ForwardAgent=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o Port=22 -o User=arkan -o ConnectTimeout=10 -o ControlPath=/home/jenkins/.ansible/cp/12be3575c6 '[192.168.0.32]'
<192.168.0.32> (0, 'sftp> put /tmp/tmpvDxEWu /home/arkan/.ansible/tmp/ansible-tmp-1510047574.27-167135549000441/setup.py\n', "Warning: Permanently added '192.168.0.32' (ECDSA) to the list of known hosts.\r\n")
<192.168.0.32> ESTABLISH SSH CONNECTION FOR USER: arkan
<192.168.0.32> SSH: EXEC sshpass -d10 ssh -o ControlMaster=no -o ControlPersist=60s -o ForwardAgent=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o Port=22 -o User=arkan -o ConnectTimeout=10 -o ControlPath=/home/jenkins/.ansible/cp/12be3575c6 192.168.0.32 '/bin/sh -c '"'"'chmod u+x /home/arkan/.ansible/tmp/ansible-tmp-1510047574.27-167135549000441/ /home/arkan/.ansible/tmp/ansible-tmp-1510047574.27-167135549000441/setup.py && sleep 0'"'"''
<192.168.0.32> (0, '', "Warning: Permanently added '192.168.0.32' (ECDSA) to the list of known hosts.\r\n")
<192.168.0.32> ESTABLISH SSH CONNECTION FOR USER: arkan
<192.168.0.32> SSH: EXEC sshpass -d10 ssh -o ControlMaster=no -o ControlPersist=60s -o ForwardAgent=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o Port=22 -o User=arkan -o ConnectTimeout=10 -o ControlPath=/home/jenkins/.ansible/cp/12be3575c6 -tt 192.168.0.32 '/bin/sh -c '"'"'/usr/bin/python /home/arkan/.ansible/tmp/ansible-tmp-1510047574.27-167135549000441/setup.py; rm -rf "/home/arkan/.ansible/tmp/ansible-tmp-1510047574.27-167135549000441/" > /dev/null 2>&1 && sleep 0'"'"''
<192.168.0.32> (0, '\r\n{"invocation": {"module_args": {"filter": "*", "gather_subset": ["all"], "fact_path": "/etc/ansible/facts.d", "gather_timeout": 10}}, "ansible_facts": {"ansible_fips": false, "ansible_service_mgr": "service", "ansible_user_id": "arkan", "module_setup": true, "gather_subset": ["all"], "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCkLxc2b3/hQHxIH1/Cd/TDzWzzi23MGDuQ3pLrKDS80/jq1Vi+D6IwASk2Cv1FuyfsfrHOUjHg/3O5B4J+bvoM=", "ansible_local": {}, "ansible_distribution_version": "2017-09-12 10:18", "ansible_domain": "", "ansible_date_time": {"weekday_number": "2", "iso8601_basic_short": "20171107T113940", "tz": "GTBST", "weeknumber": "45", "hour": "11", "year": "2017", "minute": "39", "tz_offset": "+0200", "month": "11", "epoch": "1510054780", "iso8601_micro": "2017-11-07T09:39:40.222064Z", "weekday": "Tuesday", "time": "11:39:40", "date": "2017-11-07", "iso8601": "2017-11-07T09:39:40Z", "day": "07", "iso8601_basic": "20171107T113940221920", "second": "40"}, "ansible_real_user_id": 197609, "ansible_virtualization_role": "", "ansible_dns": {}, "ansible_effective_group_id": 197609, "ansible_virtualization_type": "", "ansible_userspace_bits": "64", "ansible_architecture": "x86_64", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIGZELYByIpR/sXWYf1/cdmhmQWODqFIkieNQ/HH9QYXt", "ansible_distribution_release": "2.9.0(0.318/5/3)", "ansible_apparmor": {"status": "disabled"}, "ansible_effective_user_id": 197609, "ansible_selinux": {"status": "Missing selinux Python library"}, "ansible_os_family": "CYGWIN_NT-10.0", "ansible_userspace_architecture": "x86_64", "ansible_pkg_mgr": "unknown", "ansible_user_uid": 197609, "ansible_distribution": "CYGWIN_NT-10.0", "ansible_user_dir": "/home/arkan", "ansible_env": {"PT7HOME": "C:\\\\Program Files\\\\Cisco Packet Tracer 7.0", "PSModulePath": "%ProgramFiles%\\\\WindowsPowerShell\\\\Modules;C:\\\\WINDOWS\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\Modules", "USERDOMAIN": "ARKAN-WS", "OneDrive": "C:\\\\Users\\\\arkan\\\\OneDrive", "COMPUTERNAME": "ARKAN-WS", "PROCESSOR_IDENTIFIER": "Intel64 Family 6 Model 60 Stepping 3, GenuineIntel", "LOGNAME": "arkan", "USER": "arkan", "PROCESSOR_REVISION": "3c03", "HOME": "/home/arkan", "SYSTEMROOT": "C:\\\\WINDOWS", "SHELL": "/bin/bash", "DOCKER_TOOLBOX_INSTALL_PATH": "C:\\\\Program Files\\\\Docker Toolbox", "ProgramData": "C:\\\\ProgramData", "SHLVL": "2", "CommonProgramFiles(x86)": "C:\\\\Program Files (x86)\\\\Common Files", "PROCESSOR_ARCHITECTURE": "AMD64", "ALLUSERSPROFILE": "C:\\\\ProgramData", "USERPROFILE": "C:\\\\Users\\\\arkan", "LOCALAPPDATA": "C:\\\\Users\\\\arkan\\\\AppData\\\\Local", "HOMEPATH": "\\\\cygwin\\\\home\\\\arkan", "USERDOMAIN_ROAMINGPROFILE": "ARKAN-WS", "JAVA_HOME": "d:\\\\Program Files\\\\Java\\\\jdk1.8.0_92", "ProgramFiles(x86)": "C:\\\\Program Files (x86)", "ProgramW6432": "C:\\\\Program Files", "USERNAME": "arkan", "LOGONSERVER": "\\\\\\\\ARKAN-WS", "COMSPEC": "C:\\\\WINDOWS\\\\system32\\\\cmd.exe", "NODEJS": "C:\\\\Program Files\\\\nodejs", "ChocolateyToolsLocation": "C:\\\\tools", "ChocolateyInstall": "C:\\\\ProgramData\\\\chocolatey", "GROOVY_HOME": "D:\\\\Program Files (x86)\\\\Groovy\\\\Groovy-2.4.6", "PATH": "/bin:/cygdrive/c/ProgramData/Oracle/Java/javapath:/cygdrive/c/Program Files/Boot2Docker for Windows:/cygdrive/c/Program Files/Boot2Docker for Windows:/cygdrive/c/Program Files/Docker Toolbox:/cygdrive/c/Program Files/Broadcom/Broadcom 802.11 Network Adapter:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/WINDOWS/System32/WindowsPowerShell/v1.0:/cygdrive/d/Program Files (x86)/Groovy/Groovy-2.4.6/bin:/cygdrive/d/Program Files (x86)/gradle-2.14/bin:/cygdrive/d/Program Files/Java/jdk1.8.0_92:/cygdrive/c/ProgramData/chocolatey/bin:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/cygdrive/c/ProgramData/ComposerSetup/bin:/cygdrive/c/Program Files/Lenovo/Bluetooth Software:/cygdrive/c/Program Files/Lenovo/Bluetooth Software/syswow64:/cygdrive/c/Program Files (x86)/Skype/Phone:/cygdrive/d/Program Files/erl9.0/bin:/cygdrive/d/Program Files/ansicon/x64:/cygdrive/c/Program Files/Git/cmd:/cygdrive/c/Program Files/Git/mingw64/bin:/cygdrive/c/Program Files/Git/usr/bin:/cygdrive/c/tools/rebar3:%SystemRoot%/system32:%SystemRoot%:%SystemRoot%/System32/Wbem:%SYSTEMROOT%/System32/WindowsPowerShell/v1.0:/cygdrive/c/Users/cyg_server/AppData/Local/Microsoft/WindowsApps", "MAIL": "/var/spool/mail//arkan", "PATHEXT": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.groovy;.gy", "CommonProgramW6432": "C:\\\\Program Files\\\\Common Files", "ChocolateyLastPathUpdate": "Fri Oct 13 21:56:44 2017", "_": "/usr/bin/python", "WINDIR": "C:\\\\WINDOWS", "GRADLE_HOME": "D:\\\\Program Files (x86)\\\\gradle-2.14", "APPDATA": "C:\\\\Users\\\\arkan\\\\AppData\\\\Roaming", "HOMEDRIVE": "D:", "PROGRAMFILES": "C:\\\\Program Files", "SSH_TTY": "/dev/pty1", "SYSTEMDRIVE": "C:", "SSH_CLIENT": "192.168.0.32 60795 22", "NUMBER_OF_PROCESSORS": "8", "CommonProgramFiles": "C:\\\\Program Files\\\\Common Files", "PWD": "/home/arkan", "PROCESSOR_LEVEL": "6", "VBOX_MSI_INSTALL_PATH": "D:\\\\Program Files\\\\Oracle\\\\VirtualBox\\\\", "SSH_CONNECTION": "192.168.0.32 60795 192.168.0.32 22", "OS": "Windows_NT", "PUBLIC": "C:\\\\Users\\\\Public", "CYGWIN": "binmode ntsec"}, "ansible_ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBANGBOZS0/JLn81PjrXvug27/nIepzXtwEnA0eatkJlJWNrWZgy9K3fF1LPmCOlWSnx/xO1xte9+EXyZ3c068x8jP2BnqTHQG+nTZARivl9/KgI4hQDXxkqLTkqfDsoqGrM/SbzpWTSNXC4YUHPbICqas5fowF6VkACQhpGYhfwHnAAAAFQCqUZGj+5jBqRc6jWFSOsxo/KRaZQAAAIEAliQm6lWux4QrzZ+AIQhGCjQMP9TMdNNXJkcv8EAvxocK8lRcTA/9suEADYeSyGrm7P3BwIEo43tvWZkHmWUQ3v95BqxMStiXOCgkWN4eDEyCkDPsm3Cp2dltD7IOeTTwFzd49YN4LXTjno44HdBCMzFW/poT1ExQQH1+AoYlVsoAAACBAKa9+m5EwSeKF6Zl6XiGwKSsauHRBE+bwp145HpvUR0z+eGx/zve1cznAqRdjAFFXCbkpG6bUOLLeU1bRun/Umh9xSLwUYs46X2gO/F6lb0SQS2uhYWkEUUBuWQhh+bnCz3Qxi+58k2cPmkX/qbBF2NwAbiujpRJ79EDWy4hx07D", "ansible_selinux_python_present": false, "ansible_hostname": "Arkan-WS", "ansible_real_group_id": 197609, "ansible_lsb": {}, "ansible_machine": "x86_64", "ansible_kernel": "2.9.0(0.318/5/3)", "ansible_user_gecos": "U-ARKAN-WS\\\\arkan,S-1-5-21-2630694207-3203233935-196811991-1001", "ansible_python": {"executable": "/usr/bin/python", "version": {"micro": 13, "major": 2, "releaselevel": "final", "serial": 0, "minor": 7}, "type": "CPython", "has_sslcontext": true, "version_info": [2, 7, 13, "final", 0]}, "ansible_fqdn": "Arkan-WS", "ansible_user_gid": 197609, "ansible_nodename": "Arkan-WS", "ansible_system": "CYGWIN_NT-10.0", "ansible_user_shell": "/bin/bash", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCVPPJDvmGRqnmO/nfm+hWgbj7dvGJmtkqzx67E4rgsfmanJrQIxDtwKg2ZQAwXlf8GVHPV7SUwwBe7YsrudRtyzujUsT1OpNn7NVlZZXvHlteKbxykkxX8HYKP9gPinP6AKrYqcaBKRHFxGL/2bzwyU55CDgG+Lai6hTJ2ACSYFUNKKivY4C5HDKz+JakOILSbip9layu1QWKJPfQl68kbs3DNc13QuNLTm4kCmYuxS6D4HxpKFA4GhBZA1jyDffxAq2Jk7syupumTThvP+YbdyKYO9M2nUiHUS2N6o3Mkfovq+ofgDVBAtVcuGCIAPvk4H6MUbYCK9SbH2SzYJvMd", "ansible_python_version": "2.7.13"}}\r\n', "Warning: Permanently added '192.168.0.32' (ECDSA) to the list of known hosts.\r\nConnection to 192.168.0.32 closed.\r\n")
ok: [192.168.0.32]
META: ran handlers
TASK [register : Login into docker hub] ****************************************
task path: /ansible/erl_real_actor_limitation/app/roles/register/tasks/main.yml:3
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/cloud/docker/docker_login.py
<192.168.0.32> ESTABLISH SSH CONNECTION FOR USER: arkan
<192.168.0.32> SSH: EXEC sshpass -d10 ssh -o ControlMaster=no -o ControlPersist=60s -o ForwardAgent=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o Port=22 -o User=arkan -o ConnectTimeout=10 -o ControlPath=/home/jenkins/.ansible/cp/12be3575c6 192.168.0.32 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
<192.168.0.32> (0, '/home/arkan\n', "Warning: Permanently added '192.168.0.32' (ECDSA) to the list of known hosts.\r\n")
<192.168.0.32> ESTABLISH SSH CONNECTION FOR USER: arkan
<192.168.0.32> SSH: EXEC sshpass -d10 ssh -o ControlMaster=no -o ControlPersist=60s -o ForwardAgent=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o Port=22 -o User=arkan -o ConnectTimeout=10 -o ControlPath=/home/jenkins/.ansible/cp/12be3575c6 192.168.0.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/arkan/.ansible/tmp/ansible-tmp-1510047582.41-44045343914408 `" && echo ansible-tmp-1510047582.41-44045343914408="` echo /home/arkan/.ansible/tmp/ansible-tmp-1510047582.41-44045343914408 `" ) && sleep 0'"'"''
<192.168.0.32> (0, 'ansible-tmp-1510047582.41-44045343914408=/home/arkan/.ansible/tmp/ansible-tmp-1510047582.41-44045343914408\n', "Warning: Permanently added '192.168.0.32' (ECDSA) to the list of known hosts.\r\n")
<192.168.0.32> PUT /tmp/tmpm4Yc8u TO /home/arkan/.ansible/tmp/ansible-tmp-1510047582.41-44045343914408/docker_login.py
<192.168.0.32> SSH: EXEC sshpass -d10 sftp -o BatchMode=no -b - -o ControlMaster=no -o ControlPersist=60s -o ForwardAgent=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o Port=22 -o User=arkan -o ConnectTimeout=10 -o ControlPath=/home/jenkins/.ansible/cp/12be3575c6 '[192.168.0.32]'
<192.168.0.32> (0, 'sftp> put /tmp/tmpm4Yc8u /home/arkan/.ansible/tmp/ansible-tmp-1510047582.41-44045343914408/docker_login.py\n', "Warning: Permanently added '192.168.0.32' (ECDSA) to the list of known hosts.\r\n")
<192.168.0.32> ESTABLISH SSH CONNECTION FOR USER: arkan
<192.168.0.32> SSH: EXEC sshpass -d10 ssh -o ControlMaster=no -o ControlPersist=60s -o ForwardAgent=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o Port=22 -o User=arkan -o ConnectTimeout=10 -o ControlPath=/home/jenkins/.ansible/cp/12be3575c6 192.168.0.32 '/bin/sh -c '"'"'chmod u+x /home/arkan/.ansible/tmp/ansible-tmp-1510047582.41-44045343914408/ /home/arkan/.ansible/tmp/ansible-tmp-1510047582.41-44045343914408/docker_login.py && sleep 0'"'"''
<192.168.0.32> (0, '', "Warning: Permanently added '192.168.0.32' (ECDSA) to the list of known hosts.\r\n")
<192.168.0.32> ESTABLISH SSH CONNECTION FOR USER: arkan
<192.168.0.32> SSH: EXEC sshpass -d10 ssh -o ControlMaster=no -o ControlPersist=60s -o ForwardAgent=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o Port=22 -o User=arkan -o ConnectTimeout=10 -o ControlPath=/home/jenkins/.ansible/cp/12be3575c6 -tt 192.168.0.32 '/bin/sh -c '"'"'/usr/bin/python /home/arkan/.ansible/tmp/ansible-tmp-1510047582.41-44045343914408/docker_login.py; rm -rf "/home/arkan/.ansible/tmp/ansible-tmp-1510047582.41-44045343914408/" > /dev/null 2>&1 && sleep 0'"'"''
<192.168.0.32> (0, '/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:838: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/security.html\r\n InsecureRequestWarning)\r\n\r\n{"invocation": {"module_args": {"username": "****", "filter_logger": false, "state": "present", "cacert_path": null, "config_path": "~/.docker/config.json", "reauthorize": false, "ssl_version": null, "tls": true, "tls_hostname": null, "docker_host": "tcp://192.168.99.100:2376", "tls_verify": null, "key_path": "/cygdrive/c/Users/arkan/.docker/machine/machines/default/key.pem", "timeout": null, "debug": false, "cert_path": "/cygdrive/c/Users/arkan/.docker/machine/machines/default/cert.pem", "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "email": "****", "api_version": null, "registry_url": "https://index.docker.io/v1/"}}, "login_result": {"username": "****", "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "email": "****", "serveraddress": "https://index.docker.io/v1/"}, "changed": false}\r\n', "Warning: Permanently added '192.168.0.32' (ECDSA) to the list of known hosts.\r\nConnection to 192.168.0.32 closed.\r\n")
ok: [192.168.0.32] => {
"changed": false,
"failed": false,
"invocation": {
"module_args": {
"api_version": null,
"cacert_path": null,
"cert_path": "/cygdrive/c/Users/arkan/.docker/machine/machines/default/cert.pem",
"config_path": "~/.docker/config.json",
"debug": false,
"docker_host": "tcp://192.168.99.100:2376",
"email": "****",
"filter_logger": false,
"key_path": "/cygdrive/c/Users/arkan/.docker/machine/machines/default/key.pem",
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"reauthorize": false,
"registry_url": "https://index.docker.io/v1/",
"ssl_version": null,
"state": "present",
"timeout": null,
"tls": true,
"tls_hostname": null,
"tls_verify": null,
"username": "****"
}
},
"login_result": {
"email": "****",
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"serveraddress": "https://index.docker.io/v1/",
"username": "****"
}
}
TASK [register : Register image to docker hub] *********************************
task path: /ansible/erl_real_actor_limitation/app/roles/register/tasks/main.yml:13
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/cloud/docker/docker_image.py
<192.168.0.32> ESTABLISH SSH CONNECTION FOR USER: arkan
<192.168.0.32> SSH: EXEC sshpass -d10 ssh -o ControlMaster=no -o ControlPersist=60s -o ForwardAgent=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o Port=22 -o User=arkan -o ConnectTimeout=10 -o ControlPath=/home/jenkins/.ansible/cp/12be3575c6 192.168.0.32 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
<192.168.0.32> (0, '/home/arkan\n', "Warning: Permanently added '192.168.0.32' (ECDSA) to the list of known hosts.\r\n")
<192.168.0.32> ESTABLISH SSH CONNECTION FOR USER: arkan
<192.168.0.32> SSH: EXEC sshpass -d10 ssh -o ControlMaster=no -o ControlPersist=60s -o ForwardAgent=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o Port=22 -o User=arkan -o ConnectTimeout=10 -o ControlPath=/home/jenkins/.ansible/cp/12be3575c6 192.168.0.32 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/arkan/.ansible/tmp/ansible-tmp-1510047586.12-255784038160996 `" && echo ansible-tmp-1510047586.12-255784038160996="` echo /home/arkan/.ansible/tmp/ansible-tmp-1510047586.12-255784038160996 `" ) && sleep 0'"'"''
<192.168.0.32> (0, 'ansible-tmp-1510047586.12-255784038160996=/home/arkan/.ansible/tmp/ansible-tmp-1510047586.12-255784038160996\n', "Warning: Permanently added '192.168.0.32' (ECDSA) to the list of known hosts.\r\n")
<192.168.0.32> PUT /tmp/tmpdMGJId TO /home/arkan/.ansible/tmp/ansible-tmp-1510047586.12-255784038160996/docker_image.py
<192.168.0.32> SSH: EXEC sshpass -d10 sftp -o BatchMode=no -b - -o ControlMaster=no -o ControlPersist=60s -o ForwardAgent=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o Port=22 -o User=arkan -o ConnectTimeout=10 -o ControlPath=/home/jenkins/.ansible/cp/12be3575c6 '[192.168.0.32]'
<192.168.0.32> (0, 'sftp> put /tmp/tmpdMGJId /home/arkan/.ansible/tmp/ansible-tmp-1510047586.12-255784038160996/docker_image.py\n', "Warning: Permanently added '192.168.0.32' (ECDSA) to the list of known hosts.\r\n")
<192.168.0.32> ESTABLISH SSH CONNECTION FOR USER: arkan
<192.168.0.32> SSH: EXEC sshpass -d10 ssh -o ControlMaster=no -o ControlPersist=60s -o ForwardAgent=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o Port=22 -o User=arkan -o ConnectTimeout=10 -o ControlPath=/home/jenkins/.ansible/cp/12be3575c6 192.168.0.32 '/bin/sh -c '"'"'chmod u+x /home/arkan/.ansible/tmp/ansible-tmp-1510047586.12-255784038160996/ /home/arkan/.ansible/tmp/ansible-tmp-1510047586.12-255784038160996/docker_image.py && sleep 0'"'"''
<192.168.0.32> (0, '', "Warning: Permanently added '192.168.0.32' (ECDSA) to the list of known hosts.\r\n")
<192.168.0.32> ESTABLISH SSH CONNECTION FOR USER: arkan
<192.168.0.32> SSH: EXEC sshpass -d10 ssh -o ControlMaster=no -o ControlPersist=60s -o ForwardAgent=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o StrictHostKeyChecking=no -o Port=22 -o User=arkan -o ConnectTimeout=10 -o ControlPath=/home/jenkins/.ansible/cp/12be3575c6 -tt 192.168.0.32 '/bin/sh -c '"'"'/usr/bin/python /home/arkan/.ansible/tmp/ansible-tmp-1510047586.12-255784038160996/docker_image.py; rm -rf "/home/arkan/.ansible/tmp/ansible-tmp-1510047586.12-255784038160996/" > /dev/null 2>&1 && sleep 0'"'"''
<192.168.0.32> (0, '/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:838: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/security.html\r\n InsecureRequestWarning)\r\n/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:838: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/security.html\r\n InsecureRequestWarning)\r\n/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:838: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/security.html\r\n InsecureRequestWarning)\r\n/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:838: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/security.html\r\n InsecureRequestWarning)\r\n/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:838: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/security.html\r\n InsecureRequestWarning)\r\n\r\n{"invocation": {"module_args": {"force": false, "docker_host": "tcp://192.168.99.100:2376", "tag": "1.0.1", "path": null, "filter_logger": false, "nocache": false, "debug": false, "load_path": null, "use_tls": "no", "state": "present", "key_path": "/cygdrive/c/Users/arkan/.docker/machine/machines/default/key.pem", "rm": true, "http_timeout": null, "api_version": null, "archive_path": null, "cacert_path": null, "buildargs": null, "repository": "registry.hub.docker.com/****/erl_real_actor_limitation", "tls_hostname": null, "cert_path": "/cygdrive/c/Users/arkan/.docker/machine/machines/default/cert.pem", "tls": true, "pull": true, "name": "****/erl_real_actor_limitation", "container_limits": null, "dockerfile": null, "ssl_version": null, "tls_verify": null, "timeout": null, "push": true}}, "image": {}, "changed": false, "actions": []}\r\n', "Warning: Permanently added '192.168.0.32' (ECDSA) to the list of known hosts.\r\nConnection to 192.168.0.32 closed.\r\n")
ok: [192.168.0.32] => {
"actions": [],
"changed": false,
"failed": false,
"image": {},
"invocation": {
"module_args": {
"api_version": null,
"archive_path": null,
"buildargs": null,
"cacert_path": null,
"cert_path": "/cygdrive/c/Users/arkan/.docker/machine/machines/default/cert.pem",
"container_limits": null,
"debug": false,
"docker_host": "tcp://192.168.99.100:2376",
"dockerfile": null,
"filter_logger": false,
"force": false,
"http_timeout": null,
"key_path": "/cygdrive/c/Users/arkan/.docker/machine/machines/default/key.pem",
"load_path": null,
"name": "****/erl_real_actor_limitation",
"nocache": false,
"path": null,
"pull": true,
"push": true,
"repository": "registry.hub.docker.com/****/erl_real_actor_limitation",
"rm": true,
"ssl_version": null,
"state": "present",
"tag": "1.0.1",
"timeout": null,
"tls": true,
"tls_hostname": null,
"tls_verify": null,
"use_tls": "no"
}
}
}
META: ran handlers
META: ran handlers
PLAY RECAP *********************************************************************
192.168.0.32 : ok=3 changed=0 unreachable=0 failed=0
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Deploy on stage)
[Pipeline] sh
[ANIM-RAL-Pipeline --- Real Actor Limitation Pipeline] Running shell script
+ echo deploy on prod
deploy on prod
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS