Are you running under SELINUX? 

On Thursday, December 21, 2017 at 1:20:57 PM UTC-5, John Scancella wrote:
>
> Hello,
>
> No matter what I do, I can't seem to get the aws_s3 module to work, it 
> keeps complaining that it can't find credentials. Yet I have them set via 
> my environment variables
>
> [jscancella@johns-air chronam-deployment (master)]$ ansible-playbook -vvv 
> foo.yml --vault-password-file get_vault_password.sh
> ansible-playbook 2.4.2.0
>  config file = /Users/jscancella/development/repos/chronam-deployment/
> ansible.cfg
>  configured module search path = [u
> '/Users/jscancella/.ansible/plugins/modules', u
> '/usr/share/ansible/plugins/modules']
>  ansible python module location = /usr/local/Cellar/ansible/2.4.2.0_1/
> libexec/lib/python2.7/site-packages/ansible
>  executable location = /usr/local/bin/ansible-playbook
>  python version = 2.7.14 (default, Sep 25 2017, 09:53:22) [GCC 4.2.1 
> Compatible Apple LLVM 9.0.0 (clang-900.0.37)]
> Using /Users/jscancella/development/repos/chronam-deployment/ansible.cfg 
> as config file
> Parsed /etc/ansible/hosts inventory source with ini plugin
>
> PLAYBOOK: foo.yml 
> **************************************************************
> 2 plays in foo.yml
> Read vars_file 'variables.yml'
> Read vars_file 'variables.yml'
>
> PLAY [localhost] 
> ***************************************************************
> Read vars_file 'variables.yml'
>
> TASK [Gathering Facts] 
> *********************************************************
> Using module file /usr/local/Cellar/ansible/2.4.2.0_1/libexec/lib/python2.
> 7/site-packages/ansible/modules/system/setup.py
> <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: jscancella
> <127.0.0.1> EXEC /bin/sh -c 
> '/usr/local/Cellar/ansible/2.4.2.0_1/libexec/bin/python2.7 
> && sleep 0'
> ok: [localhost]
> META: ran handlers
> Read vars_file 'variables.yml'
>
> TASK [Add new instance to host group] 
> ******************************************
> task path: /Users/jscancella/development/repos/chronam-deployment/foo.yml:
> 13
> creating host via 'add_host': hostname=ec2-174-129-95-211.compute-
> 1.amazonaws.com
> changed: [localhost] => {
>    "add_host": {
>        "groups": [
>            "django_instances"
>        ],
>        "host_name": "ec2-174-129-95-211.compute-1.amazonaws.com",
>        "host_vars": {}
>    },
>    "changed": true
> }
> META: ran handlers
> META: ran handlers
> Read vars_file 'variables.yml'
> Read vars_file 'variables.yml'
>
> PLAY [Configure django servers] 
> ************************************************
> Read vars_file 'variables.yml'
>
> TASK [Gathering Facts] 
> *********************************************************
> Using module file /usr/local/Cellar/ansible/2.4.2.0_1/libexec/lib/python2.
> 7/site-packages/ansible/modules/system/setup.py
> <ec2-174-129-95-211.compute-1.amazonaws.com> ESTABLISH SSH CONNECTION FOR 
> USER: ubuntu
> <ec2-174-129-95-211.compute-1.amazonaws.com> SSH: EXEC ssh -C -o 
> ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 
> 'IdentityFile="/Users/jscancella/.ssh/jscalocgov.pem"' -o 
> KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-
> mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 
> User=ubuntu 
> -o ConnectTimeout=10 -o ControlPath=/Users/jscancella/.ansible/cp/
> 74732c7634 ec2-174-129-95-211.compute-1.amazonaws.com '/bin/sh -c 
> '"'"'/usr/bin/python && sleep 0'"'"''
> <ec2-174-129-95-211.compute-1.amazonaws.com> (0, 'exc: 
> \'DistributionFiles\' object has no attribute 
> \'parse_distribution_file_Archlinux\'\n\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_distribution_file_parsed": true, "ansible_fips": false, 
> "ansible_service_mgr": "upstart", "ansible_user_id": "ubuntu", 
> "ansible_selinux_python_present": false, "ansible_userspace_bits": "64", 
> "ansible_ssh_host_key_rsa_public": 
> "AAAAB3NzaC1yc2EAAAADAQABAAABAQDNVbhM+jE8EH6k0NCU/+2ZqjPhosAMe57oGZQQDKz9kvZFCiI9Yj1rFeTRjyl1Z5xlhQPjX7m8KFzO09m2Q52MfmcDbnhzBJHHL4d5ddnHCdlPL7sSiUPEQa9d32pTRl8rnEFEFbBdN/HJr2nz40s806p0l92BU8Nuy7n61CqtKwUk2WHILbg63kjGrewOEvNoXrepM+kgfBoyg1z1WF6rlavwUrjsl3U3d89D41q5Yh7Sfc69LL5/jtXp4iWw1hiWMr5W71w7lM2eBxbEqpRDL4aBiZBKaHJVgqn/Za809pkk356UxeSiwBVQZgdpEdjvfUH1KU+LKscTcUZL/9g7",
>  
> "gather_subset": ["all"], "ansible_real_user_id": 1000, 
> "ansible_architecture": "x86_64", "ansible_local": {}, 
> "ansible_distribution_version": "14.04", "ansible_domain": "ec2.internal", 
> "ansible_distribution_file_path": "/etc/os-release", "ansible_user_shell": 
> "/bin/bash", "ansible_date_time": {"weekday_number": "4", 
> "iso8601_basic_short": "20171221T171317", "tz": "UTC", "weeknumber": "51", 
> "hour": "17", "year": "2017", "minute": "13", "tz_offset": "+0000", 
> "month": "12", "epoch": "1513876397", "iso8601_micro": 
> "2017-12-21T17:13:17.789922Z", "weekday": "Thursday", "time": "17:13:17", 
> "date": "2017-12-21", "iso8601": "2017-12-21T17:13:17Z", "day": "21", 
> "iso8601_basic": "20171221T171317789867", "second": "17"}, 
> "ansible_ssh_host_key_ed25519_public": 
> "AAAAC3NzaC1lZDI1NTE5AAAAIDyvPWevvIjZsMAnTqj442m/IZ4RDPtr4CMf5I0Tktbe", 
> "ansible_processor_cores": 8, "ansible_virtualization_role": "guest", 
> "ansible_distribution_file_variety": "Debian", "ansible_env": {"LANG": 
> "en_US.UTF-8", "SHELL": "/bin/bash", "XDG_RUNTIME_DIR": "/run/user/1000", 
> "MAIL": "/var/mail/ubuntu", "SHLVL": "1", "SSH_CLIENT": "140.147.246.218 
> 60029 22", "PWD": "/home/ubuntu", "LOGNAME": "ubuntu", "USER": "ubuntu", 
> "HOME": "/home/ubuntu", "PATH": 
> "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games",
>  
> "SSH_CONNECTION": "140.147.246.218 60029 172.31.43.164 22", 
> "XDG_SESSION_ID": "15", "_": "/bin/sh"}, "ansible_effective_group_id": 
> 1000, "ansible_bios_version": "4.2.amazon", "ansible_processor": ["0", 
> "GenuineIntel", "Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz", "1", 
> "GenuineIntel", "Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz", "2", 
> "GenuineIntel", "Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz", "3", 
> "GenuineIntel", "Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz", "4", 
> "GenuineIntel", "Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz", "5", 
> "GenuineIntel", "Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz", "6", 
> "GenuineIntel", "Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz", "7", 
> "GenuineIntel", "Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz"], 
> "ansible_virtualization_type": "xen", "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", 
> "tx_tcp6_segmentation": "on", "tx_gso_robust": "off [fixed]", 
> "tx_ipip_segmentation": "off [fixed]", "tx_checksumming": "on", 
> "vlan_challenged": "on [fixed]", "loopback": "on [fixed]", "fcoe_mtu": "off 
> [fixed]", "tx_checksum_sctp": "off [fixed]", "tx_vlan_stag_hw_insert": "off 
> [fixed]", "rx_vlan_stag_hw_parse": "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]", "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_vlan_offload": "off [fixed]", 
> "tx_nocache_copy": "off [fixed]", "tx_mpls_segmentation": "off [fixed]", 
> "udp_fragmentation_offload": "on", "scatter_gather": "on", 
> "tx_sit_segmentation": "off [fixed]", "tx_checksum_fcoe_crc": "off 
> [fixed]", "tx_checksum_ip_generic": "on [fixed]", "tx_fcoe_segmentation": 
> "off [fixed]", "rx_vlan_filter": "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": 32175, 
> "ansible_ssh_host_key_ecdsa_public": 
> "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCmXFhofz132TrLX4jgHKfWF0aCOcdedMelSb9x6I0hsvxLHdQDW6Eh6H+h1zjpnkzSu9rIrrk3cKXeKBFfYJbE=",
>  
> "ansible_device_links": {"masters": {}, "labels": {"xvda1": 
> ["cloudimg-rootfs"]}, "ids": {}, "uuids": {"xvda1": 
> ["79ad9722-c80b-40bf-8e5b-b757a3c09589"]}}, "ansible_default_ipv4": 
> {"macaddress": "0e:00:69:b9:d2:8a", "network": "172.31.32.0", "mtu": 9001, 
> "broadcast": "172.31.47.255", "alias": "eth0", "netmask": "255.255.240.0", 
> "address": "172.31.43.164", "interface": "eth0", "type": "ether", 
> "gateway": "172.31.32.1"}, "ansible_swapfree_mb": 0, 
> "ansible_default_ipv6": {}, "ansible_distribution_release": "trusty", 
> "ansible_system_vendor": "Xen", "ansible_apparmor": {"status": "enabled"}, 
> "ansible_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-3.13.0-119-generic", "ro": 
> true, "root": "UUID=79ad9722-c80b-40bf-8e5b-b757a3c09589", "console": 
> "ttyS0"}, "ansible_effective_user_id": 1000, "ansible_user_gid": 1000, 
> "ansible_selinux": {"status": "Missing selinux Python library"}, 
> "ansible_product_version": "4.2.amazon", "ansible_os_family": "Debian", 
> "ansible_userspace_architecture": "x86_64", "ansible_product_uuid": "NA", 
> "ansible_system": "Linux", "ansible_pkg_mgr": "apt", "ansible_memfree_mb": 
> 31037, "ansible_devices": {"ram14": {"scheduler_mode": "", "rotational": 
> "1", "vendor": null, "sectors": "131072", "links": {"masters": [], 
> "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, 
> "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", 
> "removable": "0", "support_discard": "4096", "model": null, "partitions": 
> {}, "holders": [], "size": "64.00 MB"}, "ram15": {"scheduler_mode": "", 
> "rotational": "1", "vendor": null, "sectors": "131072", "links": 
> {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": 
> null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", 
> "removable": "0", "support_discard": "4096", "model": null, "partitions": 
> {}, "holders": [], "size": "64.00 MB"}, "ram12": {"scheduler_mode": "", 
> "rotational": "1", "vendor": null, "sectors": "131072", "links": 
> {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": 
> null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", 
> "removable": "0", "support_discard": "4096", "model": null, "partitions": 
> {}, "holders": [], "size": "64.00 MB"}, "ram13": {"scheduler_mode": "", 
> "rotational": "1", "vendor": null, "sectors": "131072", "links": 
> {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": 
> null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", 
> "removable": "0", "support_discard": "4096", "model": null, "partitions": 
> {}, "holders": [], "size": "64.00 MB"}, "ram10": {"scheduler_mode": "", 
> "rotational": "1", "vendor": null, "sectors": "131072", "links": 
> {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": 
> null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", 
> "removable": "0", "support_discard": "4096", "model": null, "partitions": 
> {}, "holders": [], "size": "64.00 MB"}, "ram11": {"scheduler_mode": "", 
> "rotational": "1", "vendor": null, "sectors": "131072", "links": 
> {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": 
> null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", 
> "removable": "0", "support_discard": "4096", "model": null, "partitions": 
> {}, "holders": [], "size": "64.00 MB"}, "ram8": {"scheduler_mode": "", 
> "rotational": "1", "vendor": null, "sectors": "131072", "links": 
> {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": 
> null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", 
> "removable": "0", "support_discard": "4096", "model": null, "partitions": 
> {}, "holders": [], "size": "64.00 MB"}, "ram9": {"scheduler_mode": "", 
> "rotational": "1", "vendor": null, "sectors": "131072", "links": 
> {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": 
> null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", 
> "removable": "0", "support_discard": "4096", "model": null, "partitions": 
> {}, "holders": [], "size": "64.00 MB"}, "ram4": {"scheduler_mode": "", 
> "rotational": "1", "vendor": null, "sectors": "131072", "links": 
> {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": 
> null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", 
> "removable": "0", "support_discard": "4096", "model": null, "partitions": 
> {}, "holders": [], "size": "64.00 MB"}, "ram5": {"scheduler_mode": "", 
> "rotational": "1", "vendor": null, "sectors": "131072", "links": 
> {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": 
> null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", 
> "removable": "0", "support_discard": "4096", "model": null, "partitions": 
> {}, "holders": [], "size": "64.00 MB"}, "ram6": {"scheduler_mode": "", 
> "rotational": "1", "vendor": null, "sectors": "131072", "links": 
> {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": 
> null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", 
> "removable": "0", "support_discard": "4096", "model": null, "partitions": 
> {}, "holders": [], "size": "64.00 MB"}, "ram7": {"scheduler_mode": "", 
> "rotational": "1", "vendor": null, "sectors": "131072", "links": 
> {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": 
> null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", 
> "removable": "0", "support_discard": "4096", "model": null, "partitions": 
> {}, "holders": [], "size": "64.00 MB"}, "ram0": {"scheduler_mode": "", 
> "rotational": "1", "vendor": null, "sectors": "131072", "links": 
> {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": 
> null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", 
> "removable": "0", "support_discard": "4096", "model": null, "partitions": 
> {}, "holders": [], "size": "64.00 MB"}, "ram1": {"scheduler_mode": "", 
> "rotational": "1", "vendor": null, "sectors": "131072", "links": 
> {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": 
> null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", 
> "removable": "0", "support_discard": "4096", "model": null, "partitions": 
> {}, "holders": [], "size": "64.00 MB"}, "ram2": {"scheduler_mode": "", 
> "rotational": "1", "vendor": null, "sectors": "131072", "links": 
> {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": 
> null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", 
> "removable": "0", "support_discard": "4096", "model": null, "partitions": 
> {}, "holders": [], "size": "64.00 MB"}, "ram3": {"scheduler_mode": "", 
> "rotational": "1", "vendor": null, "sectors": "131072", "links": 
> {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": 
> null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", 
> "removable": "0", "support_discard": "4096", "model": null, "partitions": 
> {}, "holders": [], "size": "64.00 MB"}, "loop4": {"scheduler_mode": "", 
> "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], 
> "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, 
> "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", 
> "removable": "0", "support_discard": "0", "model": null, "partitions": {}, 
> "holders": [], "size": "0.00 Bytes"}, "loop3": {"scheduler_mode": "", 
> "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], 
> "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, 
> "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", 
> "removable": "0", "support_discard": "0", "model": null, "partitions": {}, 
> "holders": [], "size": "0.00 Bytes"}, "loop2": {"scheduler_mode": "", 
> "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], 
> "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, 
> "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", 
> "removable": "0", "support_discard": "0", "model": null, "partitions": {}, 
> "holders": [], "size": "0.00 Bytes"}, "loop1": {"scheduler_mode": "", 
> "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], 
> "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, 
> "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", 
> "removable": "0", "support_discard": "0", "model": null, "partitions": {}, 
> "holders": [], "size": "0.00 Bytes"}, "loop0": {"scheduler_mode": "", 
> "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], 
> "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, 
> "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", 
> "removable": "0", "support_discard": "0", "model": null, "partitions": {}, 
> "holders": [], "size": "0.00 Bytes"}, "loop7": {"scheduler_mode": "", 
> "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], 
> "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, 
> "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", 
> "removable": "0", "support_discard": "0", "model": null, "partitions": {}, 
> "holders": [], "size": "0.00 Bytes"}, "loop6": {"scheduler_mode": "", 
> "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], 
> "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, 
> "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", 
> "removable": "0", "support_discard": "0", "model": null, "partitions": {}, 
> "holders": [], "size": "0.00 Bytes"}, "loop5": {"scheduler_mode": "", 
> "rotational": "1", "vendor": null, "sectors": "0", "links": {"masters": [], 
> "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, 
> "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", 
> "removable": "0", "support_discard": "0", "model": null, "partitions": {}, 
> "holders": [], "size": "0.00 Bytes"}, "xvda": {"scheduler_mode": 
> "deadline", "rotational": "0", "vendor": null, "sectors": "20971520", 
> "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, 
> "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", 
> "sectorsize": "512", "removable": "0", "support_discard": "0", "model": 
> null, "partitions": {"xvda1": {"sectorsize": 512, "uuid": 
> "79ad9722-c80b-40bf-8e5b-b757a3c09589", "links": {"masters": [], "labels": 
> ["cloudimg-rootfs"], "ids": [], "uuids": 
> ["79ad9722-c80b-40bf-8e5b-b757a3c09589"]}, "sectors": "20948760", "start": 
> "16065", "holders": [], "size": "9.99 GB"}}, "holders": [], "size": "10.00 
> GB"}}, "ansible_user_uid": 1000, "ansible_memory_mb": {"real": {"total": 
> 32175, "used": 1138, "free": 31037}, "swap": {"cached": 0, "total": 0, 
> "free": 0, "used": 0}, "nocache": {"used": 331, "free": 31844}}, 
> "ansible_distribution": "Ubuntu", "ansible_user_dir": "/home/ubuntu", 
> "ansible_dns": {"nameservers": ["172.31.0.2"], "search": ["ec2.internal"]}, 
> "ansible_distribution_major_version": "14", "module_setup": true, 
> "ansible_processor_count": 8, "ansible_hostname": "ip-172-31-43-164", 
> "ansible_processor_vcpus": 8, "ansible_swaptotal_mb": 0, "ansible_lsb": 
> {"release": "14.04", "major_release": "14", "codename": "trusty", "id": 
> "Ubuntu", "description": "Ubuntu 14.04.5 LTS"}, "ansible_real_group_id": 
> 1000, "ansible_bios_date": "08/24/2006", "ansible_all_ipv6_addresses": 
> ["fe80::c00:69ff:feb9:d28a"], "ansible_interfaces": ["lo", "eth0"], 
> "ansible_uptime_seconds": 5365, "ansible_machine_id": 
> "348ea5faa5d196b75cbd2321591cb6ad", "ansible_kernel": "3.13.0-119-generic", 
> "ansible_user_gecos": "Ubuntu", "ansible_system_capabilities_enforced": 
> "True", "ansible_python": {"executable": "/usr/bin/python", "version": 
> {"micro": 6, "major": 2, "releaselevel": "final", "serial": 0, "minor": 7}, 
> "type": "CPython", "has_sslcontext": false, "version_info": [2, 7, 6, 
> "final", 0]}, "ansible_processor_threads_per_core": 1, "ansible_fqdn": 
> "ip-172-31-43-164.ec2.internal", "ansible_mounts": [{"block_used": 461869, 
> "uuid": "N/A", "size_total": 10423046144, "block_total": 2544689, "mount": 
> "/", "block_available": 2082820, "size_available": 8531230720, "fstype": 
> "ext4", "inode_total": 655360, "options": "rw,discard", "device": 
> "/dev/xvda1", "inode_used": 71371, "block_size": 4096, "inode_available": 
> 583989}], "ansible_eth0": {"macaddress": "0e:00:69:b9:d2:8a", "features": 
> {"tx_checksum_ipv4": "on", "generic_receive_offload": "on", 
> "tx_checksum_ipv6": "on", "tx_scatter_gather_fraglist": "off [fixed]", 
> "rx_all": "off [fixed]", "highdma": "on [fixed]", "rx_fcs": "off [fixed]", 
> "tx_lockless": "off [fixed]", "tx_tcp_ecn_segmentation": "off [fixed]", 
> "tx_tcp6_segmentation": "on", "tx_gso_robust": "off [fixed]", 
> "tx_ipip_segmentation": "off [fixed]", "tx_checksumming": "on", 
> "vlan_challenged": "off [fixed]", "loopback": "off [fixed]", "fcoe_mtu": 
> "off [fixed]", "tx_checksum_sctp": "off [fixed]", "tx_vlan_stag_hw_insert": 
> "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", 
> "rx_vlan_stag_filter": "off [fixed]", "large_receive_offload": "off 
> [fixed]", "tx_scatter_gather": "on", "rx_checksumming": "on", 
> "tx_tcp_segmentation": "on", "netns_local": "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 [fixed]", "ntuple_filters": "off [fixed]", 
> "tx_vlan_offload": "on [fixed]", "tx_nocache_copy": "on", 
> "tx_mpls_segmentation": "off [fixed]", "udp_fragmentation_offload": "off 
> [fixed]", "scatter_gather": "on", "tx_sit_segmentation": "off [fixed]", 
> "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_ip_generic": "off 
> [fixed]", "tx_fcoe_segmentation": "off [fixed]", "rx_vlan_filter": "on 
> [fixed]", "receive_hashing": "off [fixed]", "tx_gre_segmentation": "off 
> [fixed]"}, "type": "ether", "pciid": "0000:00:03.0", "module": "ixgbevf", 
> "mtu": 9001, "device": "eth0", "promisc": false, "timestamping": 
> ["rx_software", "software"], "ipv4": {"broadcast": "172.31.47.255", 
> "netmask": "255.255.240.0", "network": "172.31.32.0", "address": 
> "172.31.43.164"}, "ipv6": [{"scope": "link", "prefix": "64", "address": 
> "fe80::c00:69ff:feb9:d28a"}], "active": true, "speed": 10000, 
> "hw_timestamp_filters": []}, "ansible_nodename": "ip-172-31-43-164", 
> "ansible_product_name": "HVM domU", "ansible_machine": "x86_64", 
> "ansible_system_capabilities": [""], "ansible_ssh_host_key_dsa_public": 
> "AAAAB3NzaC1kc3MAAACBAPDDRi28MvwQhO+xh2N069O6lraDhKzNW5QvwA6Q06wzeb+DQmMK4y8YxHKDXzLzmhfXGqfs3pc4u8g+w5USxisAh5SCJbQrT0dw/x4nMZoyEQ9LJVL0qfRVmhliuf29L9A6XaKqNIxi4WxV206OGN9g+ljQRoqV5fa0yttbrYErAAAAFQD+0/67HpW24Rfx2BAd6xBvoy3KdwAAAIAuyrGYFGl/kmP0KqU1yfgC/Q5e5eJxPTFz1jaLvo7950da5nZF0FmPSbLQw1LzwkxoikMamAkOh9ClQN3k3reJHpv6IViC1zvjL5/mDAOjoAFVEnqr6c8IKF6ukJMa8dsC9Gi5UgDeUJwNMhSQ1FnojtHegHgCp0KR6Dfd37s68AAAAIA1F5+exWPJkiXZCn0ZHSHBRmeYzAsNRxFb2bRTrWyGC2RAq5u00mW4Y73M2nNDvdtz+btKUZjzHNhQWOAIYFzEt8K+ButsH8UQUs08YNOqWQeuiY+uamkN9JsCuLh1YrNudZJUx0tbJ/udidWQuGh2bTFxfQTdhqizeN0hmdlK3Q==",
>  
> "ansible_all_ipv4_addresses": ["172.31.43.164"], "ansible_python_version": 
> "2.7.6"}}\n', '')
> ok: [ec2-174-129-95-211.compute-1.amazonaws.com]
> META: ran handlers
> Read vars_file 'variables.yml'
>
> TASK [copy aware binary] 
> *******************************************************
> task path: /Users/jscancella/development/repos/chronam-deployment/foo.yml:
> 27
> Using module file /usr/local/Cellar/ansible/2.4.2.0_1/libexec/lib/python2.
> 7/site-packages/ansible/modules/cloud/amazon/aws_s3.py
> <ec2-174-129-95-211.compute-1.amazonaws.com> ESTABLISH SSH CONNECTION FOR 
> USER: ubuntu
> <ec2-174-129-95-211.compute-1.amazonaws.com> SSH: EXEC ssh -C -o 
> ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 
> 'IdentityFile="/Users/jscancella/.ssh/jscalocgov.pem"' -o 
> KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-
> mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 
> User=ubuntu 
> -o ConnectTimeout=10 -o ControlPath=/Users/jscancella/.ansible/cp/
> 74732c7634 ec2-174-129-95-211.compute-1.amazonaws.com '/bin/sh -c 
> '"'"'/usr/bin/python && sleep 0'"'"''
> <ec2-174-129-95-211.compute-1.amazonaws.com> (1, '', 'Traceback (most 
> recent call last):\n  File "/tmp/ansible_gbMwg9/ansible_module_aws_s3.py", 
> line 829, in <module>\n    main()\n  File 
> "/tmp/ansible_gbMwg9/ansible_module_aws_s3.py", line 659, in main\n   
>  bucketrtn = bucket_check(module, s3, bucket, validate=validate)\n  File 
> "/tmp/ansible_gbMwg9/ansible_module_aws_s3.py", line 290, in bucket_check\n 
>    s3.head_bucket(Bucket=bucket)\n  File 
> "/usr/local/lib/python2.7/dist-packages/botocore/client.py", line 317, in 
> _api_call\n    return self._make_api_call(operation_name, kwargs)\n  File 
> "/usr/local/lib/python2.7/dist-packages/botocore/client.py", line 602, in 
> _make_api_call\n    operation_model, request_dict)\n  File 
> "/usr/local/lib/python2.7/dist-packages/botocore/endpoint.py", line 143, in 
> make_request\n    return self._send_request(request_dict, 
> operation_model)\n  File 
> "/usr/local/lib/python2.7/dist-packages/botocore/endpoint.py", line 168, in 
> _send_request\n    request = self.create_request(request_dict, 
> operation_model)\n  File 
> "/usr/local/lib/python2.7/dist-packages/botocore/endpoint.py", line 152, in 
> create_request\n    operation_name=operation_model.name)\n  File 
> "/usr/local/lib/python2.7/dist-packages/botocore/hooks.py", line 227, in 
> emit\n    return self._emit(event_name, kwargs)\n  File 
> "/usr/local/lib/python2.7/dist-packages/botocore/hooks.py", line 210, in 
> _emit\n    response = handler(**kwargs)\n  File 
> "/usr/local/lib/python2.7/dist-packages/botocore/signers.py", line 90, in 
> handler\n    return self.sign(operation_name, request)\n  File 
> "/usr/local/lib/python2.7/dist-packages/botocore/signers.py", line 154, in 
> sign\n    auth.add_auth(request)\n  File 
> "/usr/local/lib/python2.7/dist-packages/botocore/auth.py", line 420, in 
> add_auth\n    super(S3SigV4Auth, self).add_auth(request)\n  File 
> "/usr/local/lib/python2.7/dist-packages/botocore/auth.py", line 352, in 
> add_auth\n    raise 
> NoCredentialsError\nbotocore.exceptions.NoCredentialsError: Unable to 
> locate credentials\n')
> The full traceback is:
> Traceback (most recent call last):
>  File "/tmp/ansible_gbMwg9/ansible_module_aws_s3.py", line 829, in 
> <module>
>    main()
>  File "/tmp/ansible_gbMwg9/ansible_module_aws_s3.py", line 659, in main
>    bucketrtn = bucket_check(module, s3, bucket, validate=validate)
>  File "/tmp/ansible_gbMwg9/ansible_module_aws_s3.py", line 290, in 
> bucket_check
>    s3.head_bucket(Bucket=bucket)
>  File "/usr/local/lib/python2.7/dist-packages/botocore/client.py", line 
> 317, in _api_call
>    return self._make_api_call(operation_name, kwargs)
>  File "/usr/local/lib/python2.7/dist-packages/botocore/client.py", line 
> 602, in _make_api_call
>    operation_model, request_dict)
>  File "/usr/local/lib/python2.7/dist-packages/botocore/endpoint.py", line 
> 143, in make_request
>    return self._send_request(request_dict, operation_model)
>  File "/usr/local/lib/python2.7/dist-packages/botocore/endpoint.py", line 
> 168, in _send_request
>    request = self.create_request(request_dict, operation_model)
>  File "/usr/local/lib/python2.7/dist-packages/botocore/endpoint.py", line 
> 152, in create_request
>    operation_name=operation_model.name)
>  File "/usr/local/lib/python2.7/dist-packages/botocore/hooks.py", line 227
> , in emit
>    return self._emit(event_name, kwargs)
>  File "/usr/local/lib/python2.7/dist-packages/botocore/hooks.py", line 210
> , in _emit
>    response = handler(**kwargs)
>  File "/usr/local/lib/python2.7/dist-packages/botocore/signers.py", line 
> 90, in handler
>    return self.sign(operation_name, request)
>  File "/usr/local/lib/python2.7/dist-packages/botocore/signers.py", line 
> 154, in sign
>    auth.add_auth(request)
>  File "/usr/local/lib/python2.7/dist-packages/botocore/auth.py", line 420, 
> in add_auth
>    super(S3SigV4Auth, self).add_auth(request)
>  File "/usr/local/lib/python2.7/dist-packages/botocore/auth.py", line 352, 
> in add_auth
>    raise NoCredentialsError
> botocore.exceptions.NoCredentialsError: Unable to locate credentials
>
> fatal: [ec2-174-129-95-211.compute-1.amazonaws.com]: FAILED! => {
>    "changed": false,
>    "module_stderr": "Traceback (most recent call last):\n  File 
> \"/tmp/ansible_gbMwg9/ansible_module_aws_s3.py\", line 829, in <module>\n   
>  main()\n  File \"/tmp/ansible_gbMwg9/ansible_module_aws_s3.py\", line 659, 
> in main\n    bucketrtn = bucket_check(module, s3, bucket, 
> validate=validate)\n  File 
> \"/tmp/ansible_gbMwg9/ansible_module_aws_s3.py\", line 290, in 
> bucket_check\n    s3.head_bucket(Bucket=bucket)\n  File 
> \"/usr/local/lib/python2.7/dist-packages/botocore/client.py\", line 317, in 
> _api_call\n    return self._make_api_call(operation_name, kwargs)\n  File 
> \"/usr/local/lib/python2.7/dist-packages/botocore/client.py\", line 602, in 
> _make_api_call\n    operation_model, request_dict)\n  File 
> \"/usr/local/lib/python2.7/dist-packages/botocore/endpoint.py\", line 143, 
> in make_request\n    return self._send_request(request_dict, 
> operation_model)\n  File 
> \"/usr/local/lib/python2.7/dist-packages/botocore/endpoint.py\", line 168, 
> in _send_request\n    request = self.create_request(request_dict, 
> operation_model)\n  File 
> \"/usr/local/lib/python2.7/dist-packages/botocore/endpoint.py\", line 152, 
> in create_request\n    operation_name=operation_model.name)\n  File 
> \"/usr/local/lib/python2.7/dist-packages/botocore/hooks.py\", line 227, in 
> emit\n    return self._emit(event_name, kwargs)\n  File 
> \"/usr/local/lib/python2.7/dist-packages/botocore/hooks.py\", line 210, in 
> _emit\n    response = handler(**kwargs)\n  File 
> \"/usr/local/lib/python2.7/dist-packages/botocore/signers.py\", line 90, in 
> handler\n    return self.sign(operation_name, request)\n  File 
> \"/usr/local/lib/python2.7/dist-packages/botocore/signers.py\", line 154, 
> in sign\n    auth.add_auth(request)\n  File 
> \"/usr/local/lib/python2.7/dist-packages/botocore/auth.py\", line 420, in 
> add_auth\n    super(S3SigV4Auth, self).add_auth(request)\n  File 
> \"/usr/local/lib/python2.7/dist-packages/botocore/auth.py\", line 352, in 
> add_auth\n    raise 
> NoCredentialsError\nbotocore.exceptions.NoCredentialsError: Unable to 
> locate credentials\n",
>    "module_stdout": "",
>    "msg": "MODULE FAILURE",
>    "rc": 1
> }
>
> PLAY RECAP 
> *********************************************************************
> ec2-174-129-95-211.compute-1.amazonaws.com : ok=1    changed=0   
>  unreachable=0    failed=1
> localhost                  : ok=2    changed=1    unreachable=0    failed=
> 0
>
> here is the version information
>
> [jscancella@johns-air chronam-deployment (master)]$ ansible-playbook --
> version
> ansible-playbook 2.4.2.0
>  config file = /Users/jscancella/development/repos/chronam-deployment/
> ansible.cfg
>  configured module search path = [u
> '/Users/jscancella/.ansible/plugins/modules', u
> '/usr/share/ansible/plugins/modules']
>  ansible python module location = /usr/local/Cellar/ansible/2.4.2.0_1/
> libexec/lib/python2.7/site-packages/ansible
>  executable location = /usr/local/bin/ansible-playbook
>  python version = 2.7.14 (default, Sep 25 2017, 09:53:22) [GCC 4.2.1 
> Compatible Apple LLVM 9.0.0 (clang-900.0.37)]
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8e977b83-4d6d-433a-845e-c3d5ed6ef8ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to