Skip to content

Commit

Permalink
updating FAQ to be more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
IPvSean committed Mar 21, 2018
1 parent 202c0e4 commit 8282c56
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 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,20 +13,22 @@ OR
fatal: [localhost]: FAILED! => {"attempts": 1, "changed": false, "msg": "boto is required for this module"}
```

Solution:
#### Solution:

```
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 @@ -36,13 +38,14 @@ aws_access_key_id = ABCDEFGHIJKLMNOP
aws_secret_access_key = ABCDEFGHIJKLMNOP/ABCDEFGHIJKLMNOP
```

## Problem: Not authorized for image
### Problem: Not authorized for image

```
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ClientError: An error occurred (AuthFailure) when calling the DescribeImageAttribute operation: Not authorized for image:ami-26ebbc5c
```

Solution:
#### Solution:

Install latest dev of Ansible (will lock down specific version after 2.5 launches)

```
Expand All @@ -51,16 +54,15 @@ pip install git+https://github.com/ansible/ansible.git@devel

Refer to direction for Ansible Installation: http://docs.ansible.com/ansible/latest/intro_installation.html

## Problem: TASK [connectivity_test : Wait 400 seconds, but only start checking after 30 seconds] ****************************************************

## Problem: no action detected in task
### Problem: no action detected in task

```
fatal: [localhost]: FAILED! => {"reason": "no action detected in task. This often indicates a misspelled module name, or incorrect module path.\n\nThe error appears to have been in '/home/ec2-user/linklight/provisioner/roles/manage_ec2_instances/tasks/provision.yml': line 264, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: find ami for ansible control node\n ^ here\n\n\nThe error appears to have been in '/home/ec2-user/linklight/provisioner/roles/manage_ec2_instances/tasks/provision.yml': line 264, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: find ami for ansible control node\n ^ here\n\nexception type: <class 'ansible.errors.AnsibleParserError'>\nexception: no action detected in task. This often indicates a misspelled module name, or incorrect module path.\n\nThe error appears to have been in '/home/ec2-user/linklight/provisioner/roles/manage_ec2_instances/tasks/provision.yml': line 264, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: find ami for ansible control node\n ^ here\n"}
```

Solution:
Upgrade Ansible, try latest:
#### Solution:

Install latest dev of Ansible (will lock down specific version after 2.5 launches)

```
pip install git+https://github.com/ansible/ansible.git@devel
Expand Down

0 comments on commit 8282c56

Please sign in to comment.