Skip to content

Commit

Permalink
adding some more FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
IPvSean committed Jun 28, 2018
1 parent ce7dfbb commit 2bf431d
Showing 1 changed file with 41 additions and 5 deletions.
46 changes: 41 additions & 5 deletions docs/faq.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# FAQ for the Provisioner
Frequently Asked Questions... or rather common problems that people have hit.

### Problem: boto3 missing
## Problem: boto3 missing

```
fatal: [localhost]: FAILED! => {"attempts": 1, "changed": false, "msg": "Python modules \"botocore\" or \"boto3\" are missing, please install both"}
Expand All @@ -13,21 +13,21 @@ OR
fatal: [localhost]: FAILED! => {"attempts": 1, "changed": false, "msg": "boto is required for this module"}
```

#### Solution:
### Solution:

```
pip install boto boto3
pip install boto boto3
```


### Problem: Unable to locate credentials
## Problem: Unable to locate credentials

```
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NoCredentialsError: Unable to locate credentials
fatal: [localhost]: FAILED! => {"attempts": 1, "changed": false, "msg": "Failed to describe VPCs: Unable to locate credentials"}
```

#### Solution:
### Solution:

Set your Access Key ID and Secret Access Key under ~/.aws/credentials

Expand All @@ -37,3 +37,39 @@ Set your Access Key ID and Secret Access Key under ~/.aws/credentials
aws_access_key_id = ABCDEFGHIJKLMNOP
aws_secret_access_key = ABCDEFGHIJKLMNOP/ABCDEFGHIJKLMNOP
```

## Problem: wrong version of Ansible

```
TASK [make sure we are running correct Ansible Version] ********************************
fatal: [localhost]: FAILED! => {
"assertion": "ansible_version.minor >= 6",
"changed": false,
"evaluated_to": false
}
```
### Solution
Install 2.6 or later. For Tower make sure to use an RPM. You can download a nightly here: https://releases.ansible.com/ansible/rpm/nightly/devel/epel-7-x86_64/

## Problem: Wrong version of boto3
```
make sure we are running correct boto version
py_cmd.stdout.startswith('1.7')
```

### Solution

Install boto3
```
pip install boto3 --upgrade
```

Are you using Tower? Make sure to use umask
https://docs.ansible.com/ansible-tower/latest/html/upgrade-migration-guide/virtualenv.html

```
source /var/lib/awx/venv/ansible/bin/activate
umask 0022
pip install --upgrade pywinrm
deactivate
```

0 comments on commit 2bf431d

Please sign in to comment.