[ansible-project] Re: _ec2_instance_facts.py botocore.exceptions.NoCredentialsError: Unable to locate credentials

2020-05-04 Thread Meir Yanovich
I'm answering my self and to help whom facing this problem i couldn't find it on the entire internet! the thing is that boto3 is searching for the AWS credentials in /etc/boto.cfg and not in .aws directory ... so to find out i had to debug ansible using this link which was very helpful

[ansible-project] Re: _ec2_instance_facts.py botocore.exceptions.NoCredentialsError: Unable to locate credentials

2020-05-02 Thread Meir Yanovich
after many trys i thing that mybe the problem is that i need to install boto3 on the remote host fo this i did : to install it but first, i need pip to be installed on remote and i try to invoke it but i keep getting : and i try to invoke it but i keep getting : fatal: [10.0.6.182]:

[ansible-project] Re: _ec2_instance_facts.py botocore.exceptions.NoCredentialsError: Unable to locate credentials

2020-05-02 Thread Meir Yanovich
after updating ansible to the latest I'm getting this error: 2020-05-02 11:54:57,580 p=23305 u=ec2-user | task path: /home/ec2-user/ ansible/ansible_linux/roles/package_deploy/tasks/main.yml:5 2020-05-02 11:54:57,580 p=23305 u=ec2-user | Saturday 02 May 2020 11:54:57 + (0:00:00.476)