16:31 $ ansible-playbook -vvv -b -K pdns-recursor.yaml --vault-password-file=~/.ansible-vault-password ansible-playbook 2.4.0.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] Using /etc/ansible/ansible.cfg as config file SUDO password: Parsed /etc/ansible/hosts inventory source with ini plugin Read vars_file 'vars/passwords.yaml' Read vars_file 'vars/passwords.yaml' Read vars_file 'vars/passwords.yaml' Read vars_file 'vars/passwords.yaml' Read vars_file 'vars/passwords.yaml' Read vars_file 'vars/passwords.yaml' Read vars_file 'vars/passwords.yaml' statically imported: /home/user/git/Ansible/roles/PowerDNS.pdns-recursor/tasks/configure.yml Read vars_file 'vars/passwords.yaml' statically imported: /home/user/git/Ansible/roles/PowerDNS.pdns-recursor/tasks/install-epel.yml PLAYBOOK: pdns-recursor.yaml *********************************************************************************************************************************************************************** 1 plays in pdns-recursor.yaml Read vars_file 'vars/passwords.yaml' Read vars_file 'vars/passwords.yaml' PLAY [dns] ***************************************************************************************************************************************************************************************** Read vars_file 'vars/passwords.yaml' TASK [Gathering Facts] ***************************************************************************************************************************************************************************** Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/setup.py <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"'' <10.1.0.10> (0, '/home/user\n', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/user/.ansible/tmp/ansible-tmp-1509579142.11-239816640294968 `" && echo ansible-tmp-1509579142.11-239816640294968="` echo /home/user/.ansible/tmp/ansible-tmp-1509579142.11-239816640294968 `" ) && sleep 0'"'"'' <10.1.0.10> (0, 'ansible-tmp-1509579142.11-239816640294968=/home/user/.ansible/tmp/ansible-tmp-1509579142.11-239816640294968\n', '') <10.1.0.10> PUT /tmp/tmpAjZ6qd TO /home/user/.ansible/tmp/ansible-tmp-1509579142.11-239816640294968/setup.py <10.1.0.10> SSH: EXEC sftp -b - -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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 '[10.1.0.10]' <10.1.0.10> (0, 'sftp> put /tmp/tmpAjZ6qd /home/user/.ansible/tmp/ansible-tmp-1509579142.11-239816640294968/setup.py\n', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'chmod u+x /home/user/.ansible/tmp/ansible-tmp-1509579142.11-239816640294968/ /home/user/.ansible/tmp/ansible-tmp-1509579142.11-239816640294968/setup.py && sleep 0'"'"'' <10.1.0.10> (0, '', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 -tt 10.1.0.10 '/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible, key=kmykpshtflrzwehxaweqtmmaogoosknq] password: " -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-kmykpshtflrzwehxaweqtmmaogoosknq; /usr/bin/python3 /home/user/.ansible/tmp/ansible-tmp-1509579142.11-239816640294968/setup.py; rm -rf "/home/user/.ansible/tmp/ansible-tmp-1509579142.11-239816640294968/" > /dev/null 2>&1'"'"'"'"'"'"'"'"' && sleep 0'"'"'' <10.1.0.10> (0, '\r\n\r\n{"ansible_facts": {"ansible_user_id": "root", "ansible_user_uid": 0, "ansible_user_gid": 0, "ansible_user_gecos": "root", "ansible_user_dir": "/root", "ansible_user_shell": "/bin/bash", "ansible_real_user_id": 0, "ansible_effective_user_id": 0, "ansible_real_group_id": 0, "ansible_effective_group_id": 0, "ansible_distribution": "Ubuntu", "ansible_distribution_release": "artful", "ansible_distribution_version": "17.10", "ansible_distribution_major_version": "17", "ansible_distribution_file_variety": "Debian", "ansible_distribution_file_path": "/etc/os-release", "ansible_distribution_file_parsed": true, "ansible_os_family": "Debian", "ansible_virtualization_type": "VMware", "ansible_virtualization_role": "guest", "ansible_interfaces": ["ens160", "lo"], "ansible_ens160": {"device": "ens160", "macaddress": "00:50:56:a6:a6:3b", "mtu": 1500, "active": true, "module": "vmxnet3", "type": "ether", "pciid": "0000:03:00.0", "speed": 10000, "promisc": false, "ipv4": {"address": "10.1.0.10", "broadcast": "10.1.0.255", "netmask": "255.255.255.0", "network": "10.1.0.0"}, "ipv6": [{"address": "fe80::250:56ff:fea6:a63b", "prefix": "64", "scope": "link"}], "features": {"rx_checksumming": "on", "tx_checksumming": "on", "tx_checksum_ipv4": "off [fixed]", "tx_checksum_ip_generic": "on", "tx_checksum_ipv6": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_sctp": "off [fixed]", "scatter_gather": "on", "tx_scatter_gather": "on", "tx_scatter_gather_fraglist": "off [fixed]", "tcp_segmentation_offload": "on", "tx_tcp_segmentation": "on", "tx_tcp_ecn_segmentation": "off [fixed]", "tx_tcp_mangleid_segmentation": "off", "tx_tcp6_segmentation": "on", "udp_fragmentation_offload": "off [fixed]", "generic_segmentation_offload": "on", "generic_receive_offload": "on", "large_receive_offload": "on", "rx_vlan_offload": "on", "tx_vlan_offload": "on", "ntuple_filters": "off [fixed]", "receive_hashing": "on", "highdma": "on", "rx_vlan_filter": "on [fixed]", "vlan_challenged": "off [fixed]", "tx_lockless": "off [fixed]", "netns_local": "off [fixed]", "tx_gso_robust": "off [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_ipxip4_segmentation": "off [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_udp_tnl_csum_segmentation": "off [fixed]", "tx_gso_partial": "off [fixed]", "tx_sctp_segmentation": "off [fixed]", "tx_esp_segmentation": "off [fixed]", "fcoe_mtu": "off [fixed]", "tx_nocache_copy": "off", "loopback": "off [fixed]", "rx_fcs": "off [fixed]", "rx_all": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "l2_fwd_offload": "off [fixed]", "hw_tc_offload": "off [fixed]", "esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]"}, "timestamping": ["rx_software", "software"], "hw_timestamp_filters": []}, "ansible_lo": {"device": "lo", "mtu": 65536, "active": true, "type": "loopback", "promisc": false, "ipv4": {"address": "127.0.0.1", "broadcast": "host", "netmask": "255.0.0.0", "network": "127.0.0.0"}, "ipv6": [{"address": "::1", "prefix": "128", "scope": "host"}], "features": {"rx_checksumming": "on [fixed]", "tx_checksumming": "on", "tx_checksum_ipv4": "off [fixed]", "tx_checksum_ip_generic": "on [fixed]", "tx_checksum_ipv6": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_sctp": "on [fixed]", "scatter_gather": "on", "tx_scatter_gather": "on [fixed]", "tx_scatter_gather_fraglist": "on [fixed]", "tcp_segmentation_offload": "on", "tx_tcp_segmentation": "on", "tx_tcp_ecn_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_tcp6_segmentation": "on", "udp_fragmentation_offload": "on", "generic_segmentation_offload": "on", "generic_receive_offload": "on", "large_receive_offload": "off [fixed]", "rx_vlan_offload": "off [fixed]", "tx_vlan_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "highdma": "on [fixed]", "rx_vlan_filter": "off [fixed]", "vlan_challenged": "on [fixed]", "tx_lockless": "on [fixed]", "netns_local": "on [fixed]", "tx_gso_robust": "off [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_ipxip4_segmentation": "off [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_udp_tnl_csum_segmentation": "off [fixed]", "tx_gso_partial": "off [fixed]", "tx_sctp_segmentation": "on", "tx_esp_segmentation": "off [fixed]", "fcoe_mtu": "off [fixed]", "tx_nocache_copy": "off [fixed]", "loopback": "on [fixed]", "rx_fcs": "off [fixed]", "rx_all": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "l2_fwd_offload": "off [fixed]", "hw_tc_offload": "off [fixed]", "esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]"}, "timestamping": ["tx_software", "rx_software", "software"], "hw_timestamp_filters": []}, "ansible_default_ipv4": {"gateway": "10.1.0.1", "interface": "ens160", "address": "10.1.0.10", "broadcast": "10.1.0.255", "netmask": "255.255.255.0", "network": "10.1.0.0", "macaddress": "00:50:56:a6:a6:3b", "mtu": 1500, "type": "ether", "alias": "ens160"}, "ansible_default_ipv6": {"gateway": "fe80::5054:ff:fe95:bfe2", "interface": "ens160", "address": "fe80::250:56ff:fea6:a63b", "prefix": "64", "scope": "link", "macaddress": "00:50:56:a6:a6:3b", "mtu": 1500, "type": "ether"}, "ansible_all_ipv4_addresses": ["10.1.0.10"], "ansible_all_ipv6_addresses": ["fe80::250:56ff:fea6:a63b"], "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQC8irVnzFGkQkTEb0vPEniiq2fVYjOYTJAPTeeqI9rGGMvBJvpR15qz3IaLzkyn4EA/Z/bce0licnTKonwcOcNOpwRbNlhybkqMyK4eXsQMwgY3fE5o/gZz6Lco6HuC6HykRyYgpZPbHqp8scaq1SDpz4T/D/N0fUxPwQA3I+DahMSboxjGRkMLcLEb2r6SbDwMu2nyZo4VuaWwRMT/kqUfTGXWwoprwroE2O3e3QbgEYdb16f3mZIJ3ToEcRxtO5h1tTcXReqy0yCT1gGXf7QgagtLyu5qMAkl3Medu5zmWxjKNptI7xqMoPegIA2YhcIqi732ojVJuM19ExHZ+O5B", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBP+/e2OtEy4JCT3oyNq45lTbx/Pyw0FPukHoQiG4vIhiFqSZIoKMVvHaZTO29rntPxKguW63rfaNvw31cb4p/JA=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAILUU6Ul6NQJf2kCK24mpaP4fHuZOlTUuwYVeKSz8RbaQ", "ansible_processor": ["0", "GenuineIntel", "Intel(R) Xeon(R) CPU E5540 @ 2.53GHz", "1", "GenuineIntel", "Intel(R) Xeon(R) CPU E5540 @ 2.53GHz"], "ansible_processor_count": 2, "ansible_processor_cores": 1, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 2, "ansible_memtotal_mb": 3948, "ansible_memfree_mb": 2934, "ansible_swaptotal_mb": 4091, "ansible_swapfree_mb": 4091, "ansible_memory_mb": {"real": {"total": 3948, "used": 1014, "free": 2934}, "nocache": {"free": 3572, "used": 376}, "swap": {"total": 4091, "free": 4091, "used": 0, "cached": 0}}, "ansible_bios_date": "04/05/2016", "ansible_bios_version": "6.00", "ansible_form_factor": "Other", "ansible_product_name": "VMware Virtual Platform", "ansible_product_serial": "VMware-56 4d b6 d2 27 21 6c fb-87 f8 44 cc a7 e0 7b 02", "ansible_product_uuid": "D2B64D56-2127-FB6C-87F8-44CCA7E07B02", "ansible_product_version": "None", "ansible_system_vendor": "VMware, Inc.", "ansible_devices": {"dm-1": {"virtual": 1, "links": {"ids": ["dm-name-carbon--vg-swap_1", "dm-uuid-LVM-rcLJ6d4c9Le5lQIjW5UUQR2Oy3VImAXRb9dNQHuwBRMFK3k751nPOxl8hwt7P4BN"], "uuids": ["00e58d9a-0e8a-4cb4-9aee-704d505566c4"], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "", "sectors": "8380416", "sectorsize": "512", "size": "4.00 GB", "host": "", "holders": []}, "loop1": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "none", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "host": "", "holders": []}, "loop6": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "none", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "host": "", "holders": []}, "loop4": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "none", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "host": "", "holders": []}, "sr0": {"virtual": 1, "links": {"ids": ["ata-VMware_Virtual_SATA_CDRW_Drive_00000000000000000001"], "uuids": [], "labels": [], "masters": []}, "vendor": "NECVMWar", "model": "VMware SATA CD00", "sas_address": null, "sas_device_handle": null, "removable": "1", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "cfq", "sectors": "2097151", "sectorsize": "512", "size": "1024.00 MB", "host": "SATA controller: VMware SATA AHCI controller", "holders": []}, "loop2": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "none", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "host": "", "holders": []}, "dm-0": {"virtual": 1, "links": {"ids": ["dm-name-carbon--vg-root", "dm-uuid-LVM-rcLJ6d4c9Le5lQIjW5UUQR2Oy3VImAXR9PpZZncYeRvmIo1dQHD6cropk5ALzfNH"], "uuids": ["94e0ede8-6cc1-4d5b-b0e1-097de262f82a"], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "", "sectors": "125788160", "sectorsize": "512", "size": "59.98 GB", "host": "", "holders": []}, "loop0": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "none", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "host": "", "holders": []}, "sda": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": "VMware", "model": "Virtual disk", "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {"sda1": {"links": {"ids": ["lvm-pv-uuid-llW33Y-xamv-Dt6a-M71G-zld4-j0Ps-c5t9EZ"], "uuids": [], "labels": [], "masters": ["dm-0", "dm-1"]}, "start": "2048", "sectors": "134213632", "sectorsize": 512, "size": "64.00 GB", "uuid": null, "holders": ["carbon--vg-swap_1", "carbon--vg-root"]}}, "rotational": "1", "scheduler_mode": "cfq", "sectors": "134217728", "sectorsize": "512", "size": "64.00 GB", "host": "SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)", "holders": []}, "loop7": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "none", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "host": "", "holders": []}, "loop5": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "none", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "host": "", "holders": []}, "loop3": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "none", "sectors": "0", "sectorsize": "512", "size": "0.00 Bytes", "host": "", "holders": []}}, "ansible_device_links": {"ids": {"dm-0": ["dm-name-carbon--vg-root", "dm-uuid-LVM-rcLJ6d4c9Le5lQIjW5UUQR2Oy3VImAXR9PpZZncYeRvmIo1dQHD6cropk5ALzfNH"], "dm-1": ["dm-name-carbon--vg-swap_1", "dm-uuid-LVM-rcLJ6d4c9Le5lQIjW5UUQR2Oy3VImAXRb9dNQHuwBRMFK3k751nPOxl8hwt7P4BN"], "sda1": ["lvm-pv-uuid-llW33Y-xamv-Dt6a-M71G-zld4-j0Ps-c5t9EZ"], "sr0": ["ata-VMware_Virtual_SATA_CDRW_Drive_00000000000000000001"]}, "uuids": {"dm-0": ["94e0ede8-6cc1-4d5b-b0e1-097de262f82a"], "dm-1": ["00e58d9a-0e8a-4cb4-9aee-704d505566c4"]}, "labels": {}, "masters": {"sda1": ["dm-0", "dm-1"]}}, "ansible_uptime_seconds": 52680, "ansible_lvm": {"lvs": {"root": {"size_g": "59.98", "vg": "carbon-vg"}, "swap_1": {"size_g": "4.00", "vg": "carbon-vg"}}, "vgs": {"carbon-vg": {"size_g": "64.00", "free_g": "0.02", "num_lvs": "2", "num_pvs": "1"}}, "pvs": {"/dev/sda1": {"size_g": "64.00", "free_g": "0.02", "vg": "carbon-vg"}}}, "ansible_mounts": [{"mount": "/", "device": "/dev/mapper/carbon--vg-root", "fstype": "ext4", "options": "rw,relatime,errors=remount-ro,data=ordered", "uuid": "94e0ede8-6cc1-4d5b-b0e1-097de262f82a", "size_total": 63124058112, "size_available": 58170638336, "block_size": 4096, "block_total": 15411147, "block_available": 14201816, "block_used": 1209331, "inode_total": 3932160, "inode_available": 3860324, "inode_used": 71836}], "ansible_system_capabilities_enforced": "True", "ansible_system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "cap_wake_alarm", "cap_block_suspend", "cap_audit_read+ep"], "ansible_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-4.13.0-16-generic", "root": "/dev/mapper/carbon--vg-root", "ro": true}, "ansible_env": {"SUDO_GID": "1000", "MAIL": "/var/mail/root", "USER": "root", "HOME": "/root", "SUDO_UID": "1000", "LOGNAME": "root", "TERM": "linux", "USERNAME": "root", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin", "LANG": "en_US.UTF-8", "SUDO_COMMAND": "/bin/sh -c echo BECOME-SUCCESS-kmykpshtflrzwehxaweqtmmaogoosknq; /usr/bin/python3 /home/user/.ansible/tmp/ansible-tmp-1509579142.11-239816640294968/setup.py; rm -rf \\"/home/user/.ansible/tmp/ansible-tmp-1509579142.11-239816640294968/\\" > /dev/null 2>&1", "SHELL": "/bin/bash", "SUDO_USER": "user", "PWD": "/home/user"}, "ansible_dns": {"nameservers": ["127.0.0.53"], "search": ["dns.colo", "dns.com"]}, "ansible_system": "Linux", "ansible_kernel": "4.13.0-16-generic", "ansible_machine": "x86_64", "ansible_python_version": "3.6.3", "ansible_fqdn": "carbon.dns.colo", "ansible_hostname": "carbon", "ansible_nodename": "carbon", "ansible_domain": "dns.colo", "ansible_userspace_bits": "64", "ansible_architecture": "x86_64", "ansible_userspace_architecture": "x86_64", "ansible_machine_id": "4fad9078c256450d959fc25a12eaddd2", "ansible_pkg_mgr": "apt", "ansible_selinux": false, "ansible_selinux_python_present": false, "ansible_fips": false, "ansible_python": {"version": {"major": 3, "minor": 6, "micro": 3, "releaselevel": "final", "serial": 0}, "version_info": [3, 6, 3, "final", 0], "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython"}, "ansible_service_mgr": "systemd", "ansible_local": {}, "ansible_date_time": {"year": "2017", "month": "11", "weekday": "Wednesday", "weekday_number": "3", "weeknumber": "44", "day": "01", "hour": "16", "minute": "32", "second": "24", "epoch": "1509579144", "date": "2017-11-01", "time": "16:32:24", "iso8601_micro": "2017-11-01T23:32:24.554302Z", "iso8601": "2017-11-01T23:32:24Z", "iso8601_basic": "20171101T163224554110", "iso8601_basic_short": "20171101T163224", "tz": "PDT", "tz_offset": "-0700"}, "ansible_lsb": {"id": "Ubuntu", "description": "Ubuntu 17.10", "release": "17.10", "codename": "artful", "major_release": "17"}, "ansible_apparmor": {"status": "enabled"}, "gather_subset": ["all"], "module_setup": true}, "invocation": {"module_args": {"gather_timeout": 10, "gather_subset": ["all"], "filter": "*", "fact_path": "/etc/ansible/facts.d"}}}\r\n', 'Shared connection to 10.1.0.10 closed.\r\n') ok: [10.1.0.10] META: ran handlers Read vars_file 'vars/passwords.yaml' TASK [atosatto.packages-extras : Install python-apt] *********************************************************************************************************************************************** task path: /home/user/git/Ansible/roles/atosatto.packages-extras/tasks/main.yml:3 Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/setup.py <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"'' <10.1.0.10> (0, '/home/user\n', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/user/.ansible/tmp/ansible-tmp-1509579144.82-83669642096223 `" && echo ansible-tmp-1509579144.82-83669642096223="` echo /home/user/.ansible/tmp/ansible-tmp-1509579144.82-83669642096223 `" ) && sleep 0'"'"'' <10.1.0.10> (0, 'ansible-tmp-1509579144.82-83669642096223=/home/user/.ansible/tmp/ansible-tmp-1509579144.82-83669642096223\n', '') <10.1.0.10> PUT /tmp/tmpIp105f TO /home/user/.ansible/tmp/ansible-tmp-1509579144.82-83669642096223/setup.py <10.1.0.10> SSH: EXEC sftp -b - -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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 '[10.1.0.10]' <10.1.0.10> (0, 'sftp> put /tmp/tmpIp105f /home/user/.ansible/tmp/ansible-tmp-1509579144.82-83669642096223/setup.py\n', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'chmod u+x /home/user/.ansible/tmp/ansible-tmp-1509579144.82-83669642096223/ /home/user/.ansible/tmp/ansible-tmp-1509579144.82-83669642096223/setup.py && sleep 0'"'"'' <10.1.0.10> (0, '', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 -tt 10.1.0.10 '/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible, key=ypehzazgkdhkldxfrufqyagtcxbwqvej] password: " -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-ypehzazgkdhkldxfrufqyagtcxbwqvej; /usr/bin/python3 /home/user/.ansible/tmp/ansible-tmp-1509579144.82-83669642096223/setup.py; rm -rf "/home/user/.ansible/tmp/ansible-tmp-1509579144.82-83669642096223/" > /dev/null 2>&1'"'"'"'"'"'"'"'"' && sleep 0'"'"'' <10.1.0.10> (0, '\r\n\r\n{"ansible_facts": {"ansible_pkg_mgr": "apt"}, "invocation": {"module_args": {"filter": "ansible_pkg_mgr", "gather_subset": ["!all"], "gather_timeout": 10, "fact_path": "/etc/ansible/facts.d"}}}\r\n', 'Shared connection to 10.1.0.10 closed.\r\n') Using module file /usr/lib/python2.7/site-packages/ansible/modules/packaging/os/apt.py <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"'' <10.1.0.10> (0, '/home/user\n', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/user/.ansible/tmp/ansible-tmp-1509579146.01-175481283434168 `" && echo ansible-tmp-1509579146.01-175481283434168="` echo /home/user/.ansible/tmp/ansible-tmp-1509579146.01-175481283434168 `" ) && sleep 0'"'"'' <10.1.0.10> (0, 'ansible-tmp-1509579146.01-175481283434168=/home/user/.ansible/tmp/ansible-tmp-1509579146.01-175481283434168\n', '') <10.1.0.10> PUT /tmp/tmpPMgwK3 TO /home/user/.ansible/tmp/ansible-tmp-1509579146.01-175481283434168/apt.py <10.1.0.10> SSH: EXEC sftp -b - -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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 '[10.1.0.10]' <10.1.0.10> (0, 'sftp> put /tmp/tmpPMgwK3 /home/user/.ansible/tmp/ansible-tmp-1509579146.01-175481283434168/apt.py\n', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'chmod u+x /home/user/.ansible/tmp/ansible-tmp-1509579146.01-175481283434168/ /home/user/.ansible/tmp/ansible-tmp-1509579146.01-175481283434168/apt.py && sleep 0'"'"'' <10.1.0.10> (0, '', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 -tt 10.1.0.10 '/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible, key=jjyibpvxykxvmxeovcucmsyeudsglkia] password: " -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-jjyibpvxykxvmxeovcucmsyeudsglkia; /usr/bin/python3 /home/user/.ansible/tmp/ansible-tmp-1509579146.01-175481283434168/apt.py; rm -rf "/home/user/.ansible/tmp/ansible-tmp-1509579146.01-175481283434168/" > /dev/null 2>&1'"'"'"'"'"'"'"'"' && sleep 0'"'"'' <10.1.0.10> (0, '\r\n\r\n{"changed": false, "cache_updated": false, "cache_update_time": 1509543503, "invocation": {"module_args": {"name": "python-apt", "state": "present", "package": ["python-apt"], "cache_valid_time": 0, "purge": false, "force": false, "dpkg_options": "force-confdef,force-confold", "autoremove": false, "autoclean": false, "only_upgrade": false, "force_apt_get": false, "allow_unauthenticated": false, "update_cache": null, "deb": null, "default_release": null, "install_recommends": null, "upgrade": null}}}\r\n', 'Shared connection to 10.1.0.10 closed.\r\n') ok: [10.1.0.10] => { "cache_update_time": 1509543503, "cache_updated": false, "changed": false, "failed": false, "invocation": { "module_args": { "allow_unauthenticated": false, "autoclean": false, "autoremove": false, "cache_valid_time": 0, "deb": null, "default_release": null, "dpkg_options": "force-confdef,force-confold", "force": false, "force_apt_get": false, "install_recommends": null, "name": "python-apt", "only_upgrade": false, "package": [ "python-apt" ], "purge": false, "state": "present", "update_cache": null, "upgrade": null } } } Read vars_file 'vars/passwords.yaml' TASK [PowerDNS.pdns-recursor : Include OS-specific variables] ************************************************************************************************************************************** task path: /home/user/git/Ansible/roles/PowerDNS.pdns-recursor/tasks/main.yml:3 ok: [10.1.0.10] => { "ansible_facts": { "default_pdns_rec_config_dir": "/etc/powerdns", "default_pdns_rec_group": "pdns", "default_pdns_rec_user": "pdns" }, "ansible_included_var_files": [ "/home/user/git/Ansible/roles/PowerDNS.pdns-recursor/vars/Debian.yml" ], "changed": false, "failed": false } Read vars_file 'vars/passwords.yaml' TASK [PowerDNS.pdns-recursor : Setup the PowerDNS Recursor repo] *********************************************************************************************************************************** task path: /home/user/git/Ansible/roles/PowerDNS.pdns-recursor/tasks/main.yml:6 skipping: [10.1.0.10] => { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } Read vars_file 'vars/passwords.yaml' TASK [PowerDNS.pdns-recursor : Get the latest PowerDNS Recursor version from the Package Manager] ************************************************************************************************** task path: /home/user/git/Ansible/roles/PowerDNS.pdns-recursor/tasks/main.yml:13 Read vars_file 'vars/passwords.yaml' included: /home/user/git/Ansible/roles/PowerDNS.pdns-recursor/tasks/inspect-Debian.yml for 10.1.0.10 Read vars_file 'vars/passwords.yaml' Read vars_file 'vars/passwords.yaml' TASK [PowerDNS.pdns-recursor : Extract the PowerDNS Recursor Version from APT] ********************************************************************************************************************* task path: /home/user/git/Ansible/roles/PowerDNS.pdns-recursor/tasks/inspect-Debian.yml:3 Using module file /home/user/git/Ansible/roles/atosatto.packages-extras/library/apt_madison <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"'' <10.1.0.10> (0, '/home/user\n', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/user/.ansible/tmp/ansible-tmp-1509579147.76-248792778021699 `" && echo ansible-tmp-1509579147.76-248792778021699="` echo /home/user/.ansible/tmp/ansible-tmp-1509579147.76-248792778021699 `" ) && sleep 0'"'"'' <10.1.0.10> (0, 'ansible-tmp-1509579147.76-248792778021699=/home/user/.ansible/tmp/ansible-tmp-1509579147.76-248792778021699\n', '') <10.1.0.10> PUT /tmp/tmpgZ7P4j TO /home/user/.ansible/tmp/ansible-tmp-1509579147.76-248792778021699/apt_madison <10.1.0.10> SSH: EXEC sftp -b - -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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 '[10.1.0.10]' <10.1.0.10> (0, 'sftp> put /tmp/tmpgZ7P4j /home/user/.ansible/tmp/ansible-tmp-1509579147.76-248792778021699/apt_madison\n', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'chmod u+x /home/user/.ansible/tmp/ansible-tmp-1509579147.76-248792778021699/ /home/user/.ansible/tmp/ansible-tmp-1509579147.76-248792778021699/apt_madison && sleep 0'"'"'' <10.1.0.10> (0, '', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 -tt 10.1.0.10 '/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible, key=ftvvysyyfywmtkjfzpygrsnxvopiqcyz] password: " -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-ftvvysyyfywmtkjfzpygrsnxvopiqcyz; /usr/bin/python3 /home/user/.ansible/tmp/ansible-tmp-1509579147.76-248792778021699/apt_madison; rm -rf "/home/user/.ansible/tmp/ansible-tmp-1509579147.76-248792778021699/" > /dev/null 2>&1'"'"'"'"'"'"'"'"' && sleep 0'"'"'' <10.1.0.10> (0, '\r\n\r\n{"changed": false, "versions": [{"name": "pdns-recursor", "version": "4.0.6-1", "architecture": "amd64", "raw_description": "PowerDNS Recursor", "size": 1317374, "repo_name": "Ubuntu", "repo_archive": "artful", "repo_component": "universe", "repo_site": "us.archive.ubuntu.com", "repo_label": "Ubuntu", "repo_trusted": true}, {"name": "pdns-recursor", "version": "4.0.6-1", "architecture": "amd64", "raw_description": "PowerDNS Recursor", "size": 1317374, "repo_name": "", "repo_archive": "now", "repo_component": "now", "repo_site": "", "repo_label": "", "repo_trusted": false}], "invocation": {"module_args": {"name": "pdns-recursor", "update_cache": true, "package": "pdns-recursor"}}}\r\n', 'Shared connection to 10.1.0.10 closed.\r\n') ok: [10.1.0.10] => { "changed": false, "failed": false, "invocation": { "module_args": { "name": "pdns-recursor", "package": "pdns-recursor", "update_cache": true } }, "versions": [ { "architecture": "amd64", "name": "pdns-recursor", "raw_description": "PowerDNS Recursor", "repo_archive": "artful", "repo_component": "universe", "repo_label": "Ubuntu", "repo_name": "Ubuntu", "repo_site": "us.archive.ubuntu.com", "repo_trusted": true, "size": 1317374, "version": "4.0.6-1" }, { "architecture": "amd64", "name": "pdns-recursor", "raw_description": "PowerDNS Recursor", "repo_archive": "now", "repo_component": "now", "repo_label": "", "repo_name": "", "repo_site": "", "repo_trusted": false, "size": 1317374, "version": "4.0.6-1" } ] } Read vars_file 'vars/passwords.yaml' TASK [PowerDNS.pdns-recursor : Export the pdns_recursor_version variable for Debian] *************************************************************************************************************** task path: /home/user/git/Ansible/roles/PowerDNS.pdns-recursor/tasks/inspect-Debian.yml:10 ok: [10.1.0.10] => { "ansible_facts": { "pdns_rec_package_version": "4.0.6-1\n" }, "changed": false, "failed": false } Read vars_file 'vars/passwords.yaml' TASK [PowerDNS.pdns-recursor : Append the version to the PowerDNS Recursor package name] *********************************************************************************************************** task path: /home/user/git/Ansible/roles/PowerDNS.pdns-recursor/tasks/main.yml:17 ok: [10.1.0.10] => { "ansible_facts": { "pdns_rec_package_name": "pdns-recursor-4.0.6-1\n" }, "changed": false, "failed": false } Read vars_file 'vars/passwords.yaml' TASK [PowerDNS.pdns-recursor : Ensure that the PowerDNS configuration directory exists] ************************************************************************************************************ task path: /home/user/git/Ansible/roles/PowerDNS.pdns-recursor/tasks/configure.yml:3 Using module file /usr/lib/python2.7/site-packages/ansible/modules/files/file.py <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"'' <10.1.0.10> (0, '/home/user\n', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/user/.ansible/tmp/ansible-tmp-1509579153.88-87255389613717 `" && echo ansible-tmp-1509579153.88-87255389613717="` echo /home/user/.ansible/tmp/ansible-tmp-1509579153.88-87255389613717 `" ) && sleep 0'"'"'' <10.1.0.10> (0, 'ansible-tmp-1509579153.88-87255389613717=/home/user/.ansible/tmp/ansible-tmp-1509579153.88-87255389613717\n', '') <10.1.0.10> PUT /tmp/tmpwSeVtZ TO /home/user/.ansible/tmp/ansible-tmp-1509579153.88-87255389613717/file.py <10.1.0.10> SSH: EXEC sftp -b - -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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 '[10.1.0.10]' <10.1.0.10> (0, 'sftp> put /tmp/tmpwSeVtZ /home/user/.ansible/tmp/ansible-tmp-1509579153.88-87255389613717/file.py\n', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'chmod u+x /home/user/.ansible/tmp/ansible-tmp-1509579153.88-87255389613717/ /home/user/.ansible/tmp/ansible-tmp-1509579153.88-87255389613717/file.py && sleep 0'"'"'' <10.1.0.10> (0, '', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 -tt 10.1.0.10 '/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible, key=gseptqfwxxleafywlnmpaqsorzbtkmje] password: " -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-gseptqfwxxleafywlnmpaqsorzbtkmje; /usr/bin/python3 /home/user/.ansible/tmp/ansible-tmp-1509579153.88-87255389613717/file.py; rm -rf "/home/user/.ansible/tmp/ansible-tmp-1509579153.88-87255389613717/" > /dev/null 2>&1'"'"'"'"'"'"'"'"' && sleep 0'"'"'' <10.1.0.10> (0, '\r\n\r\n{"path": "/etc/powerdns", "changed": false, "diff": {"before": {"path": "/etc/powerdns"}, "after": {"path": "/etc/powerdns"}}, "uid": 0, "gid": 0, "owner": "root", "group": "root", "mode": "0755", "state": "directory", "size": 4096, "invocation": {"module_args": {"group": "root", "name": "/etc/powerdns", "state": "directory", "owner": "root", "path": "/etc/powerdns", "recurse": false, "force": false, "follow": false, "original_basename": null, "diff_peek": null, "validate": null, "src": null, "mode": null, "seuser": null, "serole": null, "selevel": null, "setype": null, "content": null, "backup": null, "remote_src": null, "regexp": null, "delimiter": null, "directory_mode": null, "unsafe_writes": null, "attributes": null}}}\r\n', 'Shared connection to 10.1.0.10 closed.\r\n') ok: [10.1.0.10] => { "changed": false, "diff": { "after": { "path": "/etc/powerdns" }, "before": { "path": "/etc/powerdns" } }, "failed": false, "gid": 0, "group": "root", "invocation": { "module_args": { "attributes": null, "backup": null, "content": null, "delimiter": null, "diff_peek": null, "directory_mode": null, "follow": false, "force": false, "group": "root", "mode": null, "name": "/etc/powerdns", "original_basename": null, "owner": "root", "path": "/etc/powerdns", "recurse": false, "regexp": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": null, "state": "directory", "unsafe_writes": null, "validate": null } }, "mode": "0755", "owner": "root", "path": "/etc/powerdns", "size": 4096, "state": "directory", "uid": 0 } Read vars_file 'vars/passwords.yaml' TASK [PowerDNS.pdns-recursor : Generate the PowerDNS Recursor configuration] *********************************************************************************************************************** task path: /home/user/git/Ansible/roles/PowerDNS.pdns-recursor/tasks/configure.yml:10 <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"'' <10.1.0.10> (0, '/home/user\n', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/user/.ansible/tmp/ansible-tmp-1509579154.58-226185913395744 `" && echo ansible-tmp-1509579154.58-226185913395744="` echo /home/user/.ansible/tmp/ansible-tmp-1509579154.58-226185913395744 `" ) && sleep 0'"'"'' <10.1.0.10> (0, 'ansible-tmp-1509579154.58-226185913395744=/home/user/.ansible/tmp/ansible-tmp-1509579154.58-226185913395744\n', '') Using module file /usr/lib/python2.7/site-packages/ansible/modules/files/stat.py <10.1.0.10> PUT /tmp/tmp5emOfP TO /home/user/.ansible/tmp/ansible-tmp-1509579154.58-226185913395744/stat.py <10.1.0.10> SSH: EXEC sftp -b - -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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 '[10.1.0.10]' <10.1.0.10> (0, 'sftp> put /tmp/tmp5emOfP /home/user/.ansible/tmp/ansible-tmp-1509579154.58-226185913395744/stat.py\n', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'chmod u+x /home/user/.ansible/tmp/ansible-tmp-1509579154.58-226185913395744/ /home/user/.ansible/tmp/ansible-tmp-1509579154.58-226185913395744/stat.py && sleep 0'"'"'' <10.1.0.10> (0, '', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 -tt 10.1.0.10 '/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible, key=bewgejgdrvbgsryeutkcbmyewgotjmub] password: " -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-bewgejgdrvbgsryeutkcbmyewgotjmub; /usr/bin/python3 /home/user/.ansible/tmp/ansible-tmp-1509579154.58-226185913395744/stat.py'"'"'"'"'"'"'"'"' && sleep 0'"'"'' <10.1.0.10> (0, '\r\n\r\n{"changed": false, "stat": {"exists": true, "path": "/etc/powerdns/recursor.conf", "mode": "0644", "isdir": false, "ischr": false, "isblk": false, "isreg": true, "isfifo": false, "islnk": false, "issock": false, "uid": 0, "gid": 0, "size": 135, "inode": 525856, "dev": 64768, "nlink": 1, "atime": 1509574102.9123526, "mtime": 1509545543.3527863, "ctime": 1509545543.3527863, "wusr": true, "rusr": true, "xusr": false, "wgrp": false, "rgrp": true, "xgrp": false, "woth": false, "roth": true, "xoth": false, "isuid": false, "isgid": false, "blocks": 8, "block_size": 4096, "device_type": 0, "readable": true, "writeable": true, "executable": false, "pw_name": "root", "gr_name": "root", "checksum": "f642392571e586d942dd20a38e135682795e3477", "mimetype": "text/plain", "charset": "us-ascii", "version": "4276548363", "attributes": ["extents"], "attr_flags": "e"}, "invocation": {"module_args": {"get_checksum": true, "checksum_algo": "sha1", "follow": false, "get_md5": false, "path": "/etc/powerdns/recursor.conf", "checksum_algorithm": "sha1", "get_mime": true, "get_attributes": true}}}\r\n', 'Shared connection to 10.1.0.10 closed.\r\n') <10.1.0.10> PUT /tmp/tmprhs4Eo/recursor.conf.j2 TO /home/user/.ansible/tmp/ansible-tmp-1509579154.58-226185913395744/source <10.1.0.10> SSH: EXEC sftp -b - -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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 '[10.1.0.10]' <10.1.0.10> (0, 'sftp> put /tmp/tmprhs4Eo/recursor.conf.j2 /home/user/.ansible/tmp/ansible-tmp-1509579154.58-226185913395744/source\n', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'chmod u+x /home/user/.ansible/tmp/ansible-tmp-1509579154.58-226185913395744/ /home/user/.ansible/tmp/ansible-tmp-1509579154.58-226185913395744/source && sleep 0'"'"'' <10.1.0.10> (0, '', '') Using module file /usr/lib/python2.7/site-packages/ansible/modules/files/copy.py <10.1.0.10> PUT /tmp/tmplMTz03 TO /home/user/.ansible/tmp/ansible-tmp-1509579154.58-226185913395744/copy.py <10.1.0.10> SSH: EXEC sftp -b - -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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 '[10.1.0.10]' <10.1.0.10> (0, 'sftp> put /tmp/tmplMTz03 /home/user/.ansible/tmp/ansible-tmp-1509579154.58-226185913395744/copy.py\n', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'chmod u+x /home/user/.ansible/tmp/ansible-tmp-1509579154.58-226185913395744/ /home/user/.ansible/tmp/ansible-tmp-1509579154.58-226185913395744/copy.py && sleep 0'"'"'' <10.1.0.10> (0, '', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 -tt 10.1.0.10 '/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible, key=rybaqgppkywfwjhukmqzihmbomyswgyw] password: " -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-rybaqgppkywfwjhukmqzihmbomyswgyw; /usr/bin/python3 /home/user/.ansible/tmp/ansible-tmp-1509579154.58-226185913395744/copy.py; rm -rf "/home/user/.ansible/tmp/ansible-tmp-1509579154.58-226185913395744/" > /dev/null 2>&1'"'"'"'"'"'"'"'"' && sleep 0'"'"'' <10.1.0.10> (0, '\r\n\r\n{"dest": "/etc/powerdns/recursor.conf", "src": "/home/user/.ansible/tmp/ansible-tmp-1509579154.58-226185913395744/source", "md5sum": "717182ad69da98d63c4253b9c606d6fe", "checksum": "37149b01a0b46d909536833e9118a2f1e839b87a", "changed": true, "uid": 0, "gid": 0, "owner": "root", "group": "root", "mode": "0644", "state": "file", "size": 50, "invocation": {"module_args": {"dest": "/etc/powerdns/recursor.conf", "original_basename": "recursor.conf.j2", "follow": false, "src": "/home/user/.ansible/tmp/ansible-tmp-1509579154.58-226185913395744/source", "backup": false, "force": true, "content": null, "validate": null, "directory_mode": null, "remote_src": null, "local_follow": null, "mode": null, "owner": null, "group": null, "seuser": null, "serole": null, "selevel": null, "setype": null, "regexp": null, "delimiter": null, "unsafe_writes": null, "attributes": null}}}\r\n', 'Shared connection to 10.1.0.10 closed.\r\n') Read vars_file 'vars/passwords.yaml' NOTIFIED HANDLER Restart PowerDNS Recursor changed: [10.1.0.10] => { "changed": true, "checksum": "37149b01a0b46d909536833e9118a2f1e839b87a", "dest": "/etc/powerdns/recursor.conf", "diff": [], "failed": false, "gid": 0, "group": "root", "invocation": { "module_args": { "attributes": null, "backup": false, "content": null, "delimiter": null, "dest": "/etc/powerdns/recursor.conf", "directory_mode": null, "follow": false, "force": true, "group": null, "local_follow": null, "mode": null, "original_basename": "recursor.conf.j2", "owner": null, "regexp": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": "/home/user/.ansible/tmp/ansible-tmp-1509579154.58-226185913395744/source", "unsafe_writes": null, "validate": null } }, "md5sum": "717182ad69da98d63c4253b9c606d6fe", "mode": "0644", "owner": "root", "size": 50, "src": "/home/user/.ansible/tmp/ansible-tmp-1509579154.58-226185913395744/source", "state": "file", "uid": 0 } Read vars_file 'vars/passwords.yaml' TASK [PowerDNS.pdns-recursor : Ensure that the include-dir configuration directory exists] ********************************************************************************************************* task path: /home/user/git/Ansible/roles/PowerDNS.pdns-recursor/tasks/configure.yml:16 skipping: [10.1.0.10] => { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } Read vars_file 'vars/passwords.yaml' TASK [PowerDNS.pdns-recursor : Generate the Lua config-file] *************************************************************************************************************************************** task path: /home/user/git/Ansible/roles/PowerDNS.pdns-recursor/tasks/configure.yml:24 skipping: [10.1.0.10] => { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } Read vars_file 'vars/passwords.yaml' TASK [PowerDNS.pdns-recursor : Generate the Lua dns-script] **************************************************************************************************************************************** task path: /home/user/git/Ansible/roles/PowerDNS.pdns-recursor/tasks/configure.yml:31 skipping: [10.1.0.10] => { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } Read vars_file 'vars/passwords.yaml' TASK [PowerDNS.pdns-recursor : Install epel-release on CentOS/RedHat] ****************************************************************************************************************************** task path: /home/user/git/Ansible/roles/PowerDNS.pdns-recursor/tasks/install-epel.yml:3 skipping: [10.1.0.10] => { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } Read vars_file 'vars/passwords.yaml' TASK [PowerDNS.pdns-recursor : Install epel-release on OracleLinux 6] ****************************************************************************************************************************** task path: /home/user/git/Ansible/roles/PowerDNS.pdns-recursor/tasks/install-epel.yml:9 skipping: [10.1.0.10] => { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } Read vars_file 'vars/passwords.yaml' TASK [PowerDNS.pdns-recursor : Install the PowerDNS Recursor package] ****************************************************************************************************************************** task path: /home/user/git/Ansible/roles/PowerDNS.pdns-recursor/tasks/main.yml:32 Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/setup.py <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"'' <10.1.0.10> (0, '/home/user\n', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/user/.ansible/tmp/ansible-tmp-1509579156.25-176248287444367 `" && echo ansible-tmp-1509579156.25-176248287444367="` echo /home/user/.ansible/tmp/ansible-tmp-1509579156.25-176248287444367 `" ) && sleep 0'"'"'' <10.1.0.10> (0, 'ansible-tmp-1509579156.25-176248287444367=/home/user/.ansible/tmp/ansible-tmp-1509579156.25-176248287444367\n', '') <10.1.0.10> PUT /tmp/tmpdidv34 TO /home/user/.ansible/tmp/ansible-tmp-1509579156.25-176248287444367/setup.py <10.1.0.10> SSH: EXEC sftp -b - -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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 '[10.1.0.10]' <10.1.0.10> (0, 'sftp> put /tmp/tmpdidv34 /home/user/.ansible/tmp/ansible-tmp-1509579156.25-176248287444367/setup.py\n', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'chmod u+x /home/user/.ansible/tmp/ansible-tmp-1509579156.25-176248287444367/ /home/user/.ansible/tmp/ansible-tmp-1509579156.25-176248287444367/setup.py && sleep 0'"'"'' <10.1.0.10> (0, '', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 -tt 10.1.0.10 '/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible, key=eiddectzqytgsaplfagwcskafpomkrif] password: " -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-eiddectzqytgsaplfagwcskafpomkrif; /usr/bin/python3 /home/user/.ansible/tmp/ansible-tmp-1509579156.25-176248287444367/setup.py; rm -rf "/home/user/.ansible/tmp/ansible-tmp-1509579156.25-176248287444367/" > /dev/null 2>&1'"'"'"'"'"'"'"'"' && sleep 0'"'"'' <10.1.0.10> (0, '\r\n\r\n{"ansible_facts": {"ansible_pkg_mgr": "apt"}, "invocation": {"module_args": {"filter": "ansible_pkg_mgr", "gather_subset": ["!all"], "gather_timeout": 10, "fact_path": "/etc/ansible/facts.d"}}}\r\n', 'Shared connection to 10.1.0.10 closed.\r\n') Using module file /usr/lib/python2.7/site-packages/ansible/modules/packaging/os/apt.py <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"'' <10.1.0.10> (0, '/home/user\n', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/user/.ansible/tmp/ansible-tmp-1509579157.13-274039818566670 `" && echo ansible-tmp-1509579157.13-274039818566670="` echo /home/user/.ansible/tmp/ansible-tmp-1509579157.13-274039818566670 `" ) && sleep 0'"'"'' <10.1.0.10> (0, 'ansible-tmp-1509579157.13-274039818566670=/home/user/.ansible/tmp/ansible-tmp-1509579157.13-274039818566670\n', '') <10.1.0.10> PUT /tmp/tmpHSI8CU TO /home/user/.ansible/tmp/ansible-tmp-1509579157.13-274039818566670/apt.py <10.1.0.10> SSH: EXEC sftp -b - -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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 '[10.1.0.10]' <10.1.0.10> (0, 'sftp> put /tmp/tmpHSI8CU /home/user/.ansible/tmp/ansible-tmp-1509579157.13-274039818566670/apt.py\n', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 10.1.0.10 '/bin/sh -c '"'"'chmod u+x /home/user/.ansible/tmp/ansible-tmp-1509579157.13-274039818566670/ /home/user/.ansible/tmp/ansible-tmp-1509579157.13-274039818566670/apt.py && sleep 0'"'"'' <10.1.0.10> (0, '', '') <10.1.0.10> ESTABLISH SSH CONNECTION FOR USER: None <10.1.0.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 ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/9e014a5294 -tt 10.1.0.10 '/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible, key=bjuxwgxnhrprgvqnbwjreelqhoqwfzob] password: " -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-bjuxwgxnhrprgvqnbwjreelqhoqwfzob; /usr/bin/python3 /home/user/.ansible/tmp/ansible-tmp-1509579157.13-274039818566670/apt.py; rm -rf "/home/user/.ansible/tmp/ansible-tmp-1509579157.13-274039818566670/" > /dev/null 2>&1'"'"'"'"'"'"'"'"' && sleep 0'"'"'' <10.1.0.10> (0, '\r\n\r\n{"msg": "No package matching \'pdns-recursor-4.0.6-1\\n\' is available", "failed": true, "exception": " File \\"/tmp/ansible_w39r5a9e/ansible_module_apt.py\\", line 333, in package_status\\n pkg = cache[pkgname]\\n File \\"/usr/lib/python3/dist-packages/apt/cache.py\\", line 200, in __getitem__\\n raise KeyError(\'The cache has no package named %r\' % key)\\n", "invocation": {"module_args": {"name": "pdns-recursor-4.0.6-1\\n", "state": "present", "package": ["pdns-recursor-4.0.6-1\\n"], "cache_valid_time": 0, "purge": false, "force": false, "dpkg_options": "force-confdef,force-confold", "autoremove": false, "autoclean": false, "only_upgrade": false, "force_apt_get": false, "allow_unauthenticated": false, "update_cache": null, "deb": null, "default_release": null, "install_recommends": null, "upgrade": null}}}\r\n', 'Shared connection to 10.1.0.10 closed.\r\n') The full traceback is: File "/tmp/ansible_w39r5a9e/ansible_module_apt.py", line 333, in package_status pkg = cache[pkgname] File "/usr/lib/python3/dist-packages/apt/cache.py", line 200, in __getitem__ raise KeyError('The cache has no package named %r' % key) fatal: [10.1.0.10]: FAILED! => { "changed": false, "failed": true, "invocation": { "module_args": { "allow_unauthenticated": false, "autoclean": false, "autoremove": false, "cache_valid_time": 0, "deb": null, "default_release": null, "dpkg_options": "force-confdef,force-confold", "force": false, "force_apt_get": false, "install_recommends": null, "name": "pdns-recursor-4.0.6-1\n", "only_upgrade": false, "package": [ "pdns-recursor-4.0.6-1\n" ], "purge": false, "state": "present", "update_cache": null, "upgrade": null } }, "msg": "No package matching 'pdns-recursor-4.0.6-1\n' is available" } RUNNING HANDLER [PowerDNS.pdns-recursor : Restart PowerDNS Recursor] ******************************************************************************************************************************* PLAY RECAP ***************************************************************************************************************************************************************************************** 10.1.0.10 : ok=9 changed=1 unreachable=0 failed=1