Score:0

Ansible ec2_tag failing due to missing boto dependency, which is installed

cn flag
TSG

I am trying to set the tag on a resource on my EC2 machine, per below:

- hosts: machinesA
  tasks:
  - name: Adding tags
    ec2_tag:
      resource: {{ imageid }}
      region: {{ region }}
      state: present
      tags:
        Name: "My image"

And this fails with an error that botocore and boto3 are required. Based on the IP in the error message it is required on the target machine. However, I confirmed that both the source (control node) and target machine have boto, botocore, and boto3 installed. (My script did that earlier, and I even SSH'd to the target and confirmed they are installed)

Earlier in the script I saw a warning about an available PIP upgrade, but on this OS (CentOS 7) that leads to broken dependencies so I just leave PIP as is. Hopefully that is not the cause.

Is this a known issue, or is there a simple workaround?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.