Skip to content

Commit

Permalink
some minor clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
IPvSean committed Mar 21, 2018
1 parent 5cc2013 commit e0a7e87
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
15 changes: 14 additions & 1 deletion docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Frequently Asked Questions... or rather common problems that people have hit.

## Problem: boto3 missing

```
fatal: [localhost]: FAILED! => {"attempts": 1, "changed": false, "msg": "Python modules \"botocore\" or \"boto3\" are missing, please install both"}
```
Expand Down Expand Up @@ -52,3 +52,16 @@ 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

```
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:

```
pip install git+https://github.com/ansible/ansible.git@devel
```
3 changes: 0 additions & 3 deletions provisioner/roles/manage_ec2_instances/tasks/provision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,6 @@
architecture: "{{ ec2_instance_types[ansible_node].architecture }}"
register: amis

- debug:
var: amis

- name: save ami for ansible control node
set_fact:
ansible_control_node_ami: >
Expand Down
2 changes: 1 addition & 1 deletion provisioner/roles/manage_ec2_instances/tasks/teardown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
when: vpc_net_facts.vpcs|length > 0
register: delete_sg

- name: Deleted EC2 security group for VPC vpc-{{ ec2_name_prefix }} (NETWORKING MODE)
- name: Deleted EC2 security group for VPC-2 vpc-{{ ec2_name_prefix }} (NETWORKING MODE)
ec2_group:
name: "{{ec2_security_group2}}"
region: "{{ ec2_region }}"
Expand Down

0 comments on commit e0a7e87

Please sign in to comment.