Hi all,
using strace on the ansiballz

strace -o st -s 9999 -e openat,open,readlink,stat,lstat  -f python3.7 
/home/mdupont/.ansible/tmp/ansible-tmp-1579783694.3938165-128929969192073/AnsiballZ_sqs_queue.py

Shows 
7150  openat(AT_FDCWD, "/etc/boto.cfg", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No 
such file or directory)
7150  openat(AT_FDCWD, "/home/mdupont/.boto", O_RDONLY|O_CLOEXEC) = -1 
ENOENT (No such file or directory)
7150  openat(AT_FDCWD, "/etc/boto.cfg", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No 
such file or directory)
7150  openat(AT_FDCWD, "/home/mdupont/.boto", O_RDONLY|O_CLOEXEC) = -1 
ENOENT (No such file or directory)

Copying ~/.boto.cfg to ~/.boto does the trick!

hope this helps someone,

mike

On Thursday, March 8, 2018 at 3:41:31 AM UTC-5, MB wrote:
>
> Had the same issue.
>
> Here's what I did to get Boto debug working. Maybe some of these steps are 
> not needed, I didn't take the time to investigate more.
>
> 1) Created a ~/.boto.cfg file as you did, with the following content (I 
> put my AWS credentials here on purpose):
> [Boto]
> debug = 2
>
> [Credentials]
> aws_access_key_id = ...
> aws_secret_access_key = ...
>
>
> 2) Made sure to *delete*  ~/.aws/credentials so that Ansible picks up the 
> previous Boto config file
>
> 3) and the most ugly part, monkey-patched the Ansible module I wanted to 
> test (ec2_elb) to redirect Boto logs to a file, since I could never get the 
> console/stdout output to work.
> On my system, the module I wanted Boto debug for was located in 
> /Library/Python/2.7/site-packages/ansible/modules/cloud/amazon/ec2_elb.py.
>
> Just after the various import boto, import boto.ec2... lines, I added
>
> boto.set_file_logger('boto', 'boto.log', level=2)
>
>
> This creates the "boto.log" log file in the current directory from where 
> you'll run your ansible-playbook comand.
>
>
> On Wednesday, May 25, 2016 at 7:59:58 PM UTC+8, Cos Bug wrote:
>>
>> Hi All, 
>>
>> Is there any way to turn on boto debugging for Ansible playbooks?
>>
>> In user home directory I created .boto file with contents:
>>
>> [Boto]
>> debug = 2
>>
>> But Ansible doesn't pick it up though the python script which invokes 
>> boto prints the debug messages fine.
>>
>> Any ideas?
>>
>> Regards,
>> Constantin
>>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3fa9cbde-a999-492c-808e-5e41fce52586%40googlegroups.com.

Reply via email to