diff --git a/docs/faq.md b/docs/faq.md index c57873e0c..d68420f0a 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -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"} ``` @@ -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: \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 +``` diff --git a/provisioner/roles/manage_ec2_instances/tasks/provision.yml b/provisioner/roles/manage_ec2_instances/tasks/provision.yml index 58a912253..3cca689d2 100644 --- a/provisioner/roles/manage_ec2_instances/tasks/provision.yml +++ b/provisioner/roles/manage_ec2_instances/tasks/provision.yml @@ -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: > diff --git a/provisioner/roles/manage_ec2_instances/tasks/teardown.yml b/provisioner/roles/manage_ec2_instances/tasks/teardown.yml index a59bb2af2..ccd6816ec 100644 --- a/provisioner/roles/manage_ec2_instances/tasks/teardown.yml +++ b/provisioner/roles/manage_ec2_instances/tasks/teardown.yml @@ -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 }}"