Advertisement
gurrap

Untitled

Nov 14th, 2018
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.40 KB | None | 0 0
  1. Gustavs-MacBook-Pro-2:test-ansible gurrap$ cat playbook.yml && ansible-playbook -vvv --check -i gurrap-test playbook.yml
  2. - hosts: localhost
  3. vars:
  4. tasks:
  5. - name: install unzip and curl
  6. yum:
  7. pkg:
  8. - curl
  9. - unzip
  10. state: present
  11. become: yes
  12. ansible-playbook 2.7.1
  13. config file = None
  14. configured module search path = [u'/Users/gurrap/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  15. ansible python module location = /Library/Python/2.7/site-packages/ansible
  16. executable location = /usr/local/bin/ansible-playbook
  17. python version = 2.7.10 (default, Oct 23 2015, 19:19:21) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)]
  18. No config file found; using defaults
  19. /Users/gurrap/test-ansible/gurrap-test did not meet host_list requirements, check plugin documentation if this is unexpected
  20. /Users/gurrap/test-ansible/gurrap-test did not meet script requirements, check plugin documentation if this is unexpected
  21. Parsed /Users/gurrap/test-ansible/gurrap-test inventory source with ini plugin
  22.  
  23. PLAYBOOK: playbook.yml ******************************************************************************************************************
  24. 1 plays in playbook.yml
  25.  
  26. PLAY [localhost] ************************************************************************************************************************
  27.  
  28. TASK [Gathering Facts] ******************************************************************************************************************
  29. task path: /Users/gurrap/test-ansible/playbook.yml:1
  30. <192.168.80.2> ESTABLISH SSH CONNECTION FOR USER: gurrap
  31. <192.168.80.2> SSH: EXEC sshpass -d40 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o User=gurrap -o ConnectTimeout=10 -o ControlPath=/Users/gurrap/.ansible/cp/1fc7a4f761 192.168.80.2 '/bin/sh -c '"'"'echo ~gurrap && sleep 0'"'"''
  32. <192.168.80.2> (0, '/home/gurrap\n', '')
  33. <192.168.80.2> ESTABLISH SSH CONNECTION FOR USER: gurrap
  34. <192.168.80.2> SSH: EXEC sshpass -d40 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o User=gurrap -o ConnectTimeout=10 -o ControlPath=/Users/gurrap/.ansible/cp/1fc7a4f761 192.168.80.2 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/gurrap/.ansible/tmp/ansible-tmp-1542195118.24-176806297029580 `" && echo ansible-tmp-1542195118.24-176806297029580="` echo /home/gurrap/.ansible/tmp/ansible-tmp-1542195118.24-176806297029580 `" ) && sleep 0'"'"''
  35. <192.168.80.2> (0, 'ansible-tmp-1542195118.24-176806297029580=/home/gurrap/.ansible/tmp/ansible-tmp-1542195118.24-176806297029580\n', '')
  36. Using module file /Library/Python/2.7/site-packages/ansible/modules/system/setup.py
  37. <192.168.80.2> PUT /Users/gurrap/.ansible/tmp/ansible-local-83322m0zRub/tmp6wj8Gi TO /home/gurrap/.ansible/tmp/ansible-tmp-1542195118.24-176806297029580/AnsiballZ_setup.py
  38. <192.168.80.2> SSH: EXEC sshpass -d40 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o User=gurrap -o ConnectTimeout=10 -o ControlPath=/Users/gurrap/.ansible/cp/1fc7a4f761 '[192.168.80.2]'
  39. <192.168.80.2> (0, 'sftp> put /Users/gurrap/.ansible/tmp/ansible-local-83322m0zRub/tmp6wj8Gi /home/gurrap/.ansible/tmp/ansible-tmp-1542195118.24-176806297029580/AnsiballZ_setup.py\n', '')
  40. <192.168.80.2> ESTABLISH SSH CONNECTION FOR USER: gurrap
  41. <192.168.80.2> SSH: EXEC sshpass -d40 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o User=gurrap -o ConnectTimeout=10 -o ControlPath=/Users/gurrap/.ansible/cp/1fc7a4f761 192.168.80.2 '/bin/sh -c '"'"'chmod u+x /home/gurrap/.ansible/tmp/ansible-tmp-1542195118.24-176806297029580/ /home/gurrap/.ansible/tmp/ansible-tmp-1542195118.24-176806297029580/AnsiballZ_setup.py && sleep 0'"'"''
  42. <192.168.80.2> (0, '', '')
  43. <192.168.80.2> ESTABLISH SSH CONNECTION FOR USER: gurrap
  44. <192.168.80.2> SSH: EXEC sshpass -d40 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o User=gurrap -o ConnectTimeout=10 -o ControlPath=/Users/gurrap/.ansible/cp/1fc7a4f761 -tt 192.168.80.2 '/bin/sh -c '"'"'/usr/bin/python /home/gurrap/.ansible/tmp/ansible-tmp-1542195118.24-176806297029580/AnsiballZ_setup.py && sleep 0'"'"''
  45. <192.168.80.2> (0, '\r\n{"invocation": {"module_args": {"filter": "*", "gather_subset": ["all"], "fact_path": "/etc/ansible/facts.d", "gather_timeout": 10}}, "ansible_facts": {"ansible_product_serial": "NA", "ansible_form_factor": "Other", "ansible_user_gecos": "gurrap", "ansible_distribution_file_parsed": true, "ansible_fips": false, "ansible_service_mgr": "systemd", "ansible_user_id": "gurrap", "ansible_selinux_python_present": true, "ansible_userspace_bits": "64", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDFOg+78ICGlU+GihqAMojQk8y2CQxez/jsmkpJkzzdxzK8noRbinIZuD9YZ/nq/w8S87f7TgJhxQsTw81/w2xJ3iXELmBaBFYHYraEZ7NT5i81dXewgyT3f7CyL0atLshDYjLC0LLrI13Bx3i96xmnlWMSYRkENvVu23BNMzmvN+8k1owNkwdjSNO+1L4Vr1fEzAmYvCVbtsnd4TM6Z4JgfbqQ7fsz++Ykq81Yf91qYgzsaIsmN7k4OehNfd+99QCBjeLTxq3zUhFPWDt9a7AA7GNlrX9d6gXjc1uH7dpALQdyVRI9Ij/mFHJV7FICOcZoZ3a0MBGSHvmE6EmTPlOH", "gather_subset": ["all"], "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBA85a48cSP3cHEmKWrxwrBHL6JEwtZ5kgc+k9e8kaevqBJxkhiwYHbUOO2362xjBux6+HESKB9KFoIGb3xYtySE=", "ansible_local": {}, "ansible_distribution_version": "7.5.1804", "ansible_domain": "localdomain", "ansible_distribution_file_path": "/etc/redhat-release", "ansible_user_shell": "/bin/bash", "ansible_virtualization_type": "virtualbox", "ansible_real_user_id": 1000, "ansible_processor_cores": 1, "ansible_virtualization_role": "guest", "ansible_distribution_file_variety": "RedHat", "ansible_dns": {"nameservers": ["10.239.119.11", "10.239.119.12"], "search": ["ad.qbranch.se"]}, "ansible_effective_group_id": 1000, "ansible_is_chroot": true, "ansible_bios_version": "VirtualBox", "ansible_processor": ["0", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz"], "ansible_date_time": {"weekday_number": "3", "iso8601_basic_short": "20181114T123159", "tz": "CET", "weeknumber": "46", "hour": "12", "year": "2018", "minute": "31", "tz_offset": "+0100", "month": "11", "epoch": "1542195119", "iso8601_micro": "2018-11-14T11:31:59.114872Z", "weekday": "Wednesday", "time": "12:31:59", "date": "2018-11-14", "iso8601": "2018-11-14T11:31:59Z", "day": "14", "iso8601_basic": "20181114T123159114770", "second": "59"}, "ansible_lo": {"features": {"tx_checksum_ipv4": "off [fixed]", "generic_receive_offload": "on", "tx_checksum_ipv6": "off [fixed]", "tx_scatter_gather_fraglist": "on [fixed]", "rx_all": "off [fixed]", "highdma": "on [fixed]", "rx_fcs": "off [fixed]", "tx_lockless": "on [fixed]", "tx_tcp_ecn_segmentation": "on", "rx_udp_tunnel_port_offload": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_gso_robust": "off [fixed]", "tx_ipip_segmentation": "off [fixed]", "tx_tcp_mangleid_segmentation": "on", "tx_checksumming": "on", "vlan_challenged": "on [fixed]", "loopback": "on [fixed]", "fcoe_mtu": "off [fixed]", "scatter_gather": "on", "tx_checksum_sctp": "on [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "tx_gso_partial": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off [fixed]", "tx_scatter_gather": "on [fixed]", "rx_checksumming": "on [fixed]", "tx_tcp_segmentation": "on", "netns_local": "on [fixed]", "busy_poll": "off [fixed]", "generic_segmentation_offload": "on", "tx_udp_tnl_segmentation": "off [fixed]", "tcp_segmentation_offload": "on", "l2_fwd_offload": "off [fixed]", "rx_vlan_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_nocache_copy": "off [fixed]", "tx_udp_tnl_csum_segmentation": "off [fixed]", "udp_fragmentation_offload": "on", "tx_sctp_segmentation": "on", "tx_sit_segmentation": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "hw_tc_offload": "off [fixed]", "tx_checksum_ip_generic": "on [fixed]", "tx_fcoe_segmentation": "off [fixed]", "rx_vlan_filter": "off [fixed]", "tx_vlan_offload": "off [fixed]", "receive_hashing": "off [fixed]", "tx_gre_segmentation": "off [fixed]"}, "hw_timestamp_filters": [], "mtu": 65536, "device": "lo", "promisc": false, "timestamping": ["rx_software", "software"], "ipv4": {"broadcast": "host", "netmask": "255.0.0.0", "network": "127.0.0.0", "address": "127.0.0.1"}, "ipv6": [{"scope": "host", "prefix": "128", "address": "::1"}], "active": true, "type": "loopback"}, "ansible_memtotal_mb": 991, "ansible_architecture": "x86_64", "ansible_device_links": {"masters": {"sda2": ["dm-0", "dm-1"]}, "labels": {}, "ids": {"sr0": ["ata-VBOX_CD-ROM_VB2-01700376"], "sda2": ["ata-VBOX_HARDDISK_VB6ada98f6-ea24ad92-part2", "lvm-pv-uuid-U6fUTy-TZKD-15zi-z5QM-AFlF-c3ts-rBossL"], "sda": ["ata-VBOX_HARDDISK_VB6ada98f6-ea24ad92"], "sda1": ["ata-VBOX_HARDDISK_VB6ada98f6-ea24ad92-part1"], "dm-0": ["dm-name-centos-root", "dm-uuid-LVM-KAIZ30e4CejqQMuqrgacDvI04m1InJ2pXq0UXAIvzfJc6GJ1qxiKcl92dXfZ62r9"], "dm-1": ["dm-name-centos-swap", "dm-uuid-LVM-KAIZ30e4CejqQMuqrgacDvI04m1InJ2p6sVsgfKZnZzE2cuzVoM4k8GWSTBRnYXc"]}, "uuids": {"sda1": ["9563f74b-186a-499b-b57e-3f6dc8f360ea"], "dm-0": ["498f7e0f-286b-4ef2-8393-65fe9c3b99ab"], "dm-1": ["841aba45-7059-4c1f-ad0c-7b8db108401d"]}}, "ansible_default_ipv4": {"macaddress": "08:00:27:41:e1:27", "network": "10.0.2.0", "mtu": 1500, "broadcast": "10.0.2.255", "alias": "enp0s3", "netmask": "255.255.255.0", "address": "10.0.2.15", "interface": "enp0s3", "type": "ether", "gateway": "10.0.2.2"}, "ansible_swapfree_mb": 2047, "ansible_default_ipv6": {}, "ansible_distribution_release": "Core", "ansible_system_vendor": "innotek GmbH", "ansible_os_family": "RedHat", "ansible_cmdline": {"LANG": "en_US.UTF-8", "BOOT_IMAGE": "/vmlinuz-3.10.0-862.14.4.el7.x86_64", "quiet": true, "rhgb": true, "rd.lvm.lv": "centos/swap", "crashkernel": "auto", "ro": true, "root": "/dev/mapper/centos-root"}, "ansible_effective_user_id": 1000, "ansible_user_gid": 1000, "ansible_selinux": {"status": "enabled", "policyvers": 31, "type": "targeted", "mode": "enforcing", "config_mode": "enforcing"}, "ansible_product_version": "1.2", "ansible_apparmor": {"status": "disabled"}, "ansible_userspace_architecture": "x86_64", "ansible_product_uuid": "NA", "ansible_fqdn": "localhost.localdomain", "ansible_system": "Linux", "ansible_pkg_mgr": "yum", "ansible_memfree_mb": 564, "ansible_devices": {"sr0": {"scheduler_mode": "deadline", "rotational": "1", "vendor": "VBOX", "sectors": "2097151", "links": {"masters": [], "labels": [], "ids": ["ata-VBOX_CD-ROM_VB2-01700376"], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "1", "support_discard": "0", "model": "CD-ROM", "partitions": {}, "holders": [], "size": "1024.00 MB"}, "sda": {"scheduler_mode": "deadline", "rotational": "1", "vendor": "ATA", "sectors": "62914560", "links": {"masters": [], "labels": [], "ids": ["ata-VBOX_HARDDISK_VB6ada98f6-ea24ad92"], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": "VBOX HARDDISK", "partitions": {"sda2": {"sectorsize": 512, "uuid": null, "links": {"masters": ["dm-0", "dm-1"], "labels": [], "ids": ["ata-VBOX_HARDDISK_VB6ada98f6-ea24ad92-part2", "lvm-pv-uuid-U6fUTy-TZKD-15zi-z5QM-AFlF-c3ts-rBossL"], "uuids": []}, "sectors": "60815360", "start": "2099200", "holders": ["centos-root", "centos-swap"], "size": "29.00 GB"}, "sda1": {"sectorsize": 512, "uuid": "9563f74b-186a-499b-b57e-3f6dc8f360ea", "links": {"masters": [], "labels": [], "ids": ["ata-VBOX_HARDDISK_VB6ada98f6-ea24ad92-part1"], "uuids": ["9563f74b-186a-499b-b57e-3f6dc8f360ea"]}, "sectors": "2097152", "start": "2048", "holders": [], "size": "1.00 GB"}}, "holders": [], "size": "30.00 GB"}, "dm-0": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "56606720", "links": {"masters": [], "labels": [], "ids": ["dm-name-centos-root", "dm-uuid-LVM-KAIZ30e4CejqQMuqrgacDvI04m1InJ2pXq0UXAIvzfJc6GJ1qxiKcl92dXfZ62r9"], "uuids": ["498f7e0f-286b-4ef2-8393-65fe9c3b99ab"]}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "26.99 GB"}, "dm-1": {"scheduler_mode": "", "rotational": "1", "vendor": null, "sectors": "4194304", "links": {"masters": [], "labels": [], "ids": ["dm-name-centos-swap", "dm-uuid-LVM-KAIZ30e4CejqQMuqrgacDvI04m1InJ2p6sVsgfKZnZzE2cuzVoM4k8GWSTBRnYXc"], "uuids": ["841aba45-7059-4c1f-ad0c-7b8db108401d"]}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {}, "holders": [], "size": "2.00 GB"}}, "ansible_user_uid": 1000, "ansible_memory_mb": {"real": {"total": 991, "used": 427, "free": 564}, "swap": {"cached": 0, "total": 2047, "free": 2047, "used": 0}, "nocache": {"used": 157, "free": 834}}, "ansible_distribution": "CentOS", "ansible_user_dir": "/home/gurrap", "ansible_env": {"LANG": "en_US.UTF-8", "TERM": "xterm-256color", "SHELL": "/bin/bash", "XDG_RUNTIME_DIR": "/run/user/1000", "SELINUX_ROLE_REQUESTED": "", "SHLVL": "2", "SSH_TTY": "/dev/pts/1", "HOME": "/home/gurrap", "SELINUX_LEVEL_REQUESTED": "", "SSH_CLIENT": "192.168.80.3 49266 22", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "PWD": "/home/gurrap", "SELINUX_USE_CURRENT_RANGE": "", "LOGNAME": "gurrap", "USER": "gurrap", "MAIL": "/var/mail/gurrap", "PATH": "/usr/local/bin:/usr/bin", "LS_COLORS": "rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:", "XDG_SESSION_ID": "4", "_": "/usr/bin/python", "SSH_CONNECTION": "192.168.80.3 49266 192.168.80.2 22"}, "ansible_distribution_major_version": "7", "module_setup": true, "ansible_processor_count": 1, "ansible_hostname": "localhost", "ansible_processor_vcpus": 1, "ansible_swaptotal_mb": 2047, "ansible_lsb": {}, "ansible_real_group_id": 1000, "ansible_bios_date": "12/01/2006", "ansible_enp0s8": {"macaddress": "08:00:27:1d:78:89", "features": {"tx_checksum_ipv4": "off [fixed]", "generic_receive_offload": "on", "tx_checksum_ipv6": "off [fixed]", "tx_scatter_gather_fraglist": "off [fixed]", "rx_all": "off", "highdma": "off [fixed]", "rx_fcs": "off", "tx_lockless": "off [fixed]", "tx_tcp_ecn_segmentation": "off [fixed]", "rx_udp_tunnel_port_offload": "off [fixed]", "tx_tcp6_segmentation": "off [fixed]", "tx_gso_robust": "off [fixed]", "tx_ipip_segmentation": "off [fixed]", "tx_tcp_mangleid_segmentation": "off", "tx_checksumming": "on", "vlan_challenged": "off [fixed]", "loopback": "off [fixed]", "fcoe_mtu": "off [fixed]", "scatter_gather": "on", "tx_checksum_sctp": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "tx_gso_partial": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off [fixed]", "tx_scatter_gather": "on", "rx_checksumming": "off", "tx_tcp_segmentation": "on", "netns_local": "off [fixed]", "busy_poll": "off [fixed]", "generic_segmentation_offload": "on", "tx_udp_tnl_segmentation": "off [fixed]", "tcp_segmentation_offload": "on", "l2_fwd_offload": "off [fixed]", "rx_vlan_offload": "on", "ntuple_filters": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_nocache_copy": "off", "tx_udp_tnl_csum_segmentation": "off [fixed]", "udp_fragmentation_offload": "off [fixed]", "tx_sctp_segmentation": "off [fixed]", "tx_sit_segmentation": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "hw_tc_offload": "off [fixed]", "tx_checksum_ip_generic": "on", "tx_fcoe_segmentation": "off [fixed]", "rx_vlan_filter": "on [fixed]", "tx_vlan_offload": "on [fixed]", "receive_hashing": "off [fixed]", "tx_gre_segmentation": "off [fixed]"}, "type": "ether", "pciid": "0000:00:08.0", "module": "e1000", "mtu": 1500, "device": "enp0s8", "promisc": false, "timestamping": ["tx_software", "rx_software", "software"], "ipv4": {"broadcast": "192.168.80.255", "netmask": "255.255.255.0", "network": "192.168.80.0", "address": "192.168.80.2"}, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::7e42:fc4e:a5d5:4a5c"}], "active": true, "speed": 1000, "hw_timestamp_filters": []}, "ansible_all_ipv6_addresses": ["fe80::7e42:fc4e:a5d5:4a5c", "fe80::ef95:93db:d7a5:2474"], "ansible_interfaces": ["lo", "enp0s3", "enp0s8"], "ansible_uptime_seconds": 1066, "ansible_machine_id": "c14b2b1fdc7f433ba8378b909c85dd12", "ansible_enp0s3": {"macaddress": "08:00:27:41:e1:27", "features": {"tx_checksum_ipv4": "off [fixed]", "generic_receive_offload": "on", "tx_checksum_ipv6": "off [fixed]", "tx_scatter_gather_fraglist": "off [fixed]", "rx_all": "off", "highdma": "off [fixed]", "rx_fcs": "off", "tx_lockless": "off [fixed]", "tx_tcp_ecn_segmentation": "off [fixed]", "rx_udp_tunnel_port_offload": "off [fixed]", "tx_tcp6_segmentation": "off [fixed]", "tx_gso_robust": "off [fixed]", "tx_ipip_segmentation": "off [fixed]", "tx_tcp_mangleid_segmentation": "off", "tx_checksumming": "on", "vlan_challenged": "off [fixed]", "loopback": "off [fixed]", "fcoe_mtu": "off [fixed]", "scatter_gather": "on", "tx_checksum_sctp": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "tx_gso_partial": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off [fixed]", "tx_scatter_gather": "on", "rx_checksumming": "off", "tx_tcp_segmentation": "on", "netns_local": "off [fixed]", "busy_poll": "off [fixed]", "generic_segmentation_offload": "on", "tx_udp_tnl_segmentation": "off [fixed]", "tcp_segmentation_offload": "on", "l2_fwd_offload": "off [fixed]", "rx_vlan_offload": "on", "ntuple_filters": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_nocache_copy": "off", "tx_udp_tnl_csum_segmentation": "off [fixed]", "udp_fragmentation_offload": "off [fixed]", "tx_sctp_segmentation": "off [fixed]", "tx_sit_segmentation": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "hw_tc_offload": "off [fixed]", "tx_checksum_ip_generic": "on", "tx_fcoe_segmentation": "off [fixed]", "rx_vlan_filter": "on [fixed]", "tx_vlan_offload": "on [fixed]", "receive_hashing": "off [fixed]", "tx_gre_segmentation": "off [fixed]"}, "type": "ether", "pciid": "0000:00:03.0", "module": "e1000", "mtu": 1500, "device": "enp0s3", "promisc": false, "timestamping": ["tx_software", "rx_software", "software"], "ipv4": {"broadcast": "10.0.2.255", "netmask": "255.255.255.0", "network": "10.0.2.0", "address": "10.0.2.15"}, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::ef95:93db:d7a5:2474"}], "active": true, "speed": 1000, "hw_timestamp_filters": []}, "ansible_iscsi_iqn": "", "ansible_system_capabilities_enforced": "True", "ansible_python": {"executable": "/usr/bin/python", "version": {"micro": 5, "major": 2, "releaselevel": "final", "serial": 0, "minor": 7}, "type": "CPython", "has_sslcontext": true, "version_info": [2, 7, 5, "final", 0]}, "ansible_kernel": "3.10.0-862.14.4.el7.x86_64", "ansible_processor_threads_per_core": 1, "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIMVTSsV4wwdpIqUZHYxbNBwTz4yLrU8z0WF1NuBcDArt", "ansible_mounts": [{"block_used": 1391177, "uuid": "498f7e0f-286b-4ef2-8393-65fe9c3b99ab", "size_total": 28968488960, "block_total": 7072385, "mount": "/", "block_available": 5681208, "size_available": 23270227968, "fstype": "xfs", "inode_total": 14151680, "options": "rw,seclabel,relatime,attr2,inode64,noquota", "device": "/dev/mapper/centos-root", "inode_used": 38342, "block_size": 4096, "inode_available": 14113338}, {"block_used": 40508, "uuid": "9563f74b-186a-499b-b57e-3f6dc8f360ea", "size_total": 1063256064, "block_total": 259584, "mount": "/boot", "block_available": 219076, "size_available": 897335296, "fstype": "xfs", "inode_total": 524288, "options": "rw,seclabel,relatime,attr2,inode64,noquota", "device": "/dev/sda1", "inode_used": 332, "block_size": 4096, "inode_available": 523956}], "ansible_nodename": "localhost.localdomain", "ansible_product_name": "VirtualBox", "ansible_machine": "x86_64", "ansible_system_capabilities": [""], "ansible_all_ipv4_addresses": ["192.168.80.2", "10.0.2.15"], "ansible_python_version": "2.7.5"}}\r\n', 'Shared connection to 192.168.80.2 closed.\r\n')
  46. <192.168.80.2> ESTABLISH SSH CONNECTION FOR USER: gurrap
  47. <192.168.80.2> SSH: EXEC sshpass -d40 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o User=gurrap -o ConnectTimeout=10 -o ControlPath=/Users/gurrap/.ansible/cp/1fc7a4f761 192.168.80.2 '/bin/sh -c '"'"'rm -f -r /home/gurrap/.ansible/tmp/ansible-tmp-1542195118.24-176806297029580/ > /dev/null 2>&1 && sleep 0'"'"''
  48. <192.168.80.2> (0, '', '')
  49. ok: [192.168.80.2]
  50. META: ran handlers
  51.  
  52. TASK [install unzip and curl] ***********************************************************************************************************
  53. task path: /Users/gurrap/test-ansible/playbook.yml:4
  54. <192.168.80.2> ESTABLISH SSH CONNECTION FOR USER: gurrap
  55. <192.168.80.2> SSH: EXEC sshpass -d40 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o User=gurrap -o ConnectTimeout=10 -o ControlPath=/Users/gurrap/.ansible/cp/1fc7a4f761 192.168.80.2 '/bin/sh -c '"'"'echo ~gurrap && sleep 0'"'"''
  56. <192.168.80.2> (0, '/home/gurrap\n', '')
  57. <192.168.80.2> ESTABLISH SSH CONNECTION FOR USER: gurrap
  58. <192.168.80.2> SSH: EXEC sshpass -d40 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o User=gurrap -o ConnectTimeout=10 -o ControlPath=/Users/gurrap/.ansible/cp/1fc7a4f761 192.168.80.2 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/gurrap/.ansible/tmp/ansible-tmp-1542195119.39-63369915551196 `" && echo ansible-tmp-1542195119.39-63369915551196="` echo /home/gurrap/.ansible/tmp/ansible-tmp-1542195119.39-63369915551196 `" ) && sleep 0'"'"''
  59. <192.168.80.2> (0, 'ansible-tmp-1542195119.39-63369915551196=/home/gurrap/.ansible/tmp/ansible-tmp-1542195119.39-63369915551196\n', '')
  60. Using module file /Library/Python/2.7/site-packages/ansible/modules/core/packaging/os/yum.py
  61. <192.168.80.2> PUT /Users/gurrap/.ansible/tmp/ansible-local-83322m0zRub/tmp1P7ZcA TO /home/gurrap/.ansible/tmp/ansible-tmp-1542195119.39-63369915551196/AnsiballZ_yum.py
  62. <192.168.80.2> SSH: EXEC sshpass -d40 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o User=gurrap -o ConnectTimeout=10 -o ControlPath=/Users/gurrap/.ansible/cp/1fc7a4f761 '[192.168.80.2]'
  63. <192.168.80.2> (0, 'sftp> put /Users/gurrap/.ansible/tmp/ansible-local-83322m0zRub/tmp1P7ZcA /home/gurrap/.ansible/tmp/ansible-tmp-1542195119.39-63369915551196/AnsiballZ_yum.py\n', '')
  64. <192.168.80.2> ESTABLISH SSH CONNECTION FOR USER: gurrap
  65. <192.168.80.2> SSH: EXEC sshpass -d40 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o User=gurrap -o ConnectTimeout=10 -o ControlPath=/Users/gurrap/.ansible/cp/1fc7a4f761 192.168.80.2 '/bin/sh -c '"'"'chmod u+x /home/gurrap/.ansible/tmp/ansible-tmp-1542195119.39-63369915551196/ /home/gurrap/.ansible/tmp/ansible-tmp-1542195119.39-63369915551196/AnsiballZ_yum.py && sleep 0'"'"''
  66. <192.168.80.2> (0, '', '')
  67. <192.168.80.2> ESTABLISH SSH CONNECTION FOR USER: gurrap
  68. <192.168.80.2> SSH: EXEC sshpass -d40 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o User=gurrap -o ConnectTimeout=10 -o ControlPath=/Users/gurrap/.ansible/cp/1fc7a4f761 -tt 192.168.80.2 '/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible, key=kcnealcqaimmibcufyolahvfuilvvqoz] password: " -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-kcnealcqaimmibcufyolahvfuilvvqoz; /usr/bin/python /home/gurrap/.ansible/tmp/ansible-tmp-1542195119.39-63369915551196/AnsiballZ_yum.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
  69. Escalation succeeded
  70. <192.168.80.2> (1, '\r\n\r\n{"changed": false, "results": [], "failed": true, "rc": 0, "invocation": {"module_args": {"name": "[\'curl\', \'unzip\']", "list": null, "install_repoquery": true, "conf_file": null, "disable_gpg_check": false, "state": "present", "disablerepo": null, "update_cache": false, "pkg": ["curl", "unzip"], "enablerepo": null}}, "msg": "No Package matching \'[\'curl\'\' found available, installed or updated"}\r\n', 'Shared connection to 192.168.80.2 closed.\r\n')
  71. <192.168.80.2> ESTABLISH SSH CONNECTION FOR USER: gurrap
  72. <192.168.80.2> SSH: EXEC sshpass -d40 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o User=gurrap -o ConnectTimeout=10 -o ControlPath=/Users/gurrap/.ansible/cp/1fc7a4f761 192.168.80.2 '/bin/sh -c '"'"'rm -f -r /home/gurrap/.ansible/tmp/ansible-tmp-1542195119.39-63369915551196/ > /dev/null 2>&1 && sleep 0'"'"''
  73. <192.168.80.2> (0, '', '')
  74. fatal: [192.168.80.2]: FAILED! => {
  75. "changed": false,
  76. "invocation": {
  77. "module_args": {
  78. "conf_file": null,
  79. "disable_gpg_check": false,
  80. "disablerepo": null,
  81. "enablerepo": null,
  82. "install_repoquery": true,
  83. "list": null,
  84. "name": "['curl', 'unzip']",
  85. "pkg": [
  86. "curl",
  87. "unzip"
  88. ],
  89. "state": "present",
  90. "update_cache": false
  91. }
  92. },
  93. "msg": "No Package matching '['curl'' found available, installed or updated",
  94. "rc": 0,
  95. "results": []
  96. }
  97. to retry, use: --limit @/Users/gurrap/test-ansible/playbook.retry
  98.  
  99. PLAY RECAP ******************************************************************************************************************************
  100. 192.168.80.2 : ok=1 changed=0 unreachable=0 failed=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement