Ansible-Ansible Inventory介绍:华为云动态Inventory

时间:2023-11-01 16:13:36

华为云动态Inventory

以下是华为云动态Inventory获取到的一部分的主机信息。

{   "_meta": {     "hostvars": {       "ecs_ansible_test_0001": {         "ansible_ssh_host": "45.9.xx.xx",         "id": "d9bdd7ef-dfa2-4ab2-abae-1cb25788813f",         "name": "ecs-ansible-test-0001",         ...       },       "ecs_ansible_test_0002": {         "ansible_ssh_host": "37.18.xx.xx",         "id": "c1936f99-469b-4d96-9e20-89fa816b310c",         "name": "ecs-ansible-test-0002",         ...       }     }   },   "c1936f99-469b-4d96-9e20-89fa816b310c": [     "ecs_ansible_test_0002"   ],   "d9bdd7ef-dfa2-4ab2-abae-1cb25788813f": [     "ecs_ansible_test_0001"   ],   "huaweicloud": [     "ecs_ansible_test_0001",     "ecs_ansible_test_0002"   ],   "image_id_cf9a291d_a62e_4df6_a7c5_0f6d2f16f351": [     "ecs_ansible_test_0001",     "ecs_ansible_test_0002"   ],   "cn-north-4": [     "ecs_ansible_test_0001",     "ecs_ansible_test_0002"   ],   "cn-north-4a": [     "ecs_ansible_test_0001",     "ecs_ansible_test_0002"   ],   "security_group_id_2ac34ff2_a923_465c_8591_f618f5c250bf": [     "ecs_ansible_test_0001",     "ecs_ansible_test_0002"   ],   "vpc_id_e98a5194_b270_4cad_b233_99486744f3ac": [     "ecs_ansible_test_0001",     "ecs_ansible_test_0002"   ] }
support.huaweicloud.com/usermanual-ansible/ansible_0005.html