Skip to content

Instantly share code, notes, and snippets.

@jirib
Last active January 20, 2020 09:35
Show Gist options
  • Select an option

  • Save jirib/52293d65adcde18ee3cc66ac3035cfc3 to your computer and use it in GitHub Desktop.

Select an option

Save jirib/52293d65adcde18ee3cc66ac3035cfc3 to your computer and use it in GitHub Desktop.
$ ansible-inventory -i env/prod/ --list >/dev/null
[WARNING]: * Failed to parse /home/jiri/src/threatmark/infra-ansible/env/prod/aws_ec2.yml with auto plugin: The ec2 dynamic inventory plugin requires boto3 and botocore.
[WARNING]: * Failed to parse /home/jiri/src/threatmark/infra-ansible/env/prod/aws_ec2.yml with yaml plugin: Plugin configuration YAML file, not YAML inventory
[WARNING]: * Failed to parse /home/jiri/src/threatmark/infra-ansible/env/prod/aws_ec2.yml with ini plugin: Invalid host pattern 'plugin:' supplied, ending in ':' is not allowed, this character is reserved to
provide a port.
[WARNING]: Unable to parse /home/jiri/src/threatmark/infra-ansible/env/prod/aws_ec2.yml as an inventory source
$ xbps-query -l | grep boto
ii python-boto-2.49.0_2 Python interface to Amazon Web Services (Python2)
ii python-botocore-1.13.45_1 Core functionality library of boto 3 (Python2)
ii python3-boto-2.49.0_2 Python interface to Amazon Web Services (Python3)
ii python3-botocore-1.13.45_1 Core functionality library of boto 3 (Python3)
$ export ANSIBLE_PYTHON_INTERPRETER=/usr/bin/python3
-bash-5.0$ ansible-inventory -i env/prod/ --list >/dev/null
[WARNING]: * Failed to parse /home/jiri/src/threatmark/infra-ansible/env/prod/aws_ec2.yml with auto plugin: The ec2 dynamic inventory plugin requires boto3 and botocore.
[WARNING]: * Failed to parse /home/jiri/src/threatmark/infra-ansible/env/prod/aws_ec2.yml with yaml plugin: Plugin configuration YAML file, not YAML inventory
[WARNING]: * Failed to parse /home/jiri/src/threatmark/infra-ansible/env/prod/aws_ec2.yml with ini plugin: Invalid host pattern 'plugin:' supplied, ending in ':' is not allowed, this character is reserved to
provide a port.
[WARNING]: Unable to parse /home/jiri/src/threatmark/infra-ansible/env/prod/aws_ec2.yml as an inventory source
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment