Ansible | Серверы динамического инвентарного списка уважаемых тегов AWS

Я использовал ссылку ниже, чтобы пройти через Ansible Dynamic Inventory.

При выполнении команды ниже я получаю сообщение об ошибке:- cmd: sudo ansible-playbook -i inventory/ec2.py --limit "tag_Environment_DEV:&tag_Name_DEV-emr-cluster:&tag_Project" plays/emr/find.yml

find.yml:-

---
- hosts: 127.0.0.1
  connection: local
  become: yes
  gather_facts: yes
  tasks:
    - name: Example
      shell: "ifconfig; ls -l /mnt/"

Журналы ошибок:-

[WARNING]:  * Failed to parse /Users/user/ansible/ec2.py with script plugin: Inventory script (/Users/user/ansible/ec2.py) had an execution error: Traceback (most recent call last):   
File "/Users/user/ansible/ec2.py", line 1711, in <module>     Ec2Inventory()
File "/Users/user/ansible/ec2.py", line 277, in __init__     self.do_api_calls_update_cache()
File "/Users/user/ansible/ec2.py", line 544, in do_api_calls_update_cache     self.get_instances_by_region(region)
File "/Users/user/ansible/ec2.py", line 612, in get_instances_by_region reservations = conn.get_all_instances()
File "/Library/Python/2.7/site-packages/boto/ec2/connection.py", line 585, in get_all_instances     max_results=max_results)
File "/Library/Python/2.7/site-packages/boto/ec2/connection.py", line 681, in get_all_reservations     [('item', Reservation)], verb='POST')
File "/Library/Python/2.7/site-packages/boto/connection.py", line 1170, in get_list response = self.make_request(action, params, path, verb)
File "/Library/Python/2.7/site-packages/boto/connection.py", line 1116, in make_request     return self._mexe(http_request)
File "/Library/Python/2.7/site-packages/boto/connection.py", line 1030, in _mexe     raise ex ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)

Ansible структура:-

my-project
  inventory
    ec2.ini
    ec2.py
  plays
    emr
      find.yml

0 ответов

Другие вопросы по тегам