Hi there,
Thanks - is this output what you need to see?
Kind regards,
Andy
ansible-inventory -i inventory/dev-gsheets.yaml --list -vv
ansible-inventory [core 2.12.4]
config file = /Users/username/Library/CloudStorage/OneDrive-company/sandbox/ansible-gsheets-inventory/ansible.cfg
configured module search path = [‘/Users/username/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]
ansible python module location = /Users/username/Library/CloudStorage/OneDrive-company/sandbox/ansible-gsheets-inventory/.venv/lib/python3.8/site-packages/ansible
ansible collection location = /Users/username/.ansible/collections:/usr/share/ansible/collections
executable location = /Users/username/sandbox/ansible-gsheets-inventory/.venv/bin/ansible-inventory
python version = 3.8.2 (default, Dec 21 2020, 15:06:04) [Clang 12.0.0 (clang-1200.0.32.29)]
jinja version = 3.1.1
libyaml = True
Using /Users/username/Library/CloudStorage/OneDrive-company/sandbox/ansible-gsheets-inventory/ansible.cfg as config file
[gsheets] inventory file: /Users/username/Library/CloudStorage/OneDrive-company/sandbox/ansible-gsheets-inventory/inventory/dev-gsheets.yaml
[gsheets] reading plugin options
[gsheets] checking dependencies
[gsheets] sys path: [‘/Users/username/Library/CloudStorage/OneDrive-company/sandbox/ansible-gsheets-inventory/.venv/bin’, ‘/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python38.zip’, ‘/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8’, ‘/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/lib-dynload’, ‘/Users/username/Library/CloudStorage/OneDrive-company/sandbox/ansible-gsheets-inventory/.venv/lib/python3.8/site-packages’]
[gsheets] dependencies met
[gsheets] fetch API token
[gsheets] opening sheet
[gsheets] sheet opened: 1GacYZXvmEyL08pnZHsB_H5uVGIl8z7qgcjvnVezDuXA
[gsheets] worksheets: [‘TEST1’]
[gsheets] fetching host rows
[gsheets] worksheet opened: TEST1
[gsheets] total rows: 6
[gsheets] total matched hosts: 5
[gsheets] fetching groups
[gsheets] total groups: 7
[gsheets] start adding hosts
[gsheets] adding host: (name=‘FGT60ETK19099QQQ’, address=‘172.29.252.1’, groups=[‘AUS’, ‘RB1’], description=‘AUS_TEST1’)
[gsheets] adding host: (name=‘FGT60ETK19099ZZZ’, address=‘172.29.252.8’, groups=[‘UK’, ‘andy’], description=‘UK_TEST_UK06’)
[gsheets] adding host: (name=‘FGT60ETK19099YYY’, address=‘172.29.252.17’, groups=[‘GERMANY’, ‘RB2’], description=‘GERMANY_TEST_02’)
[gsheets] adding host: (name=‘FGTTESTABC123’, address=‘172.29.255.250’, groups=[‘LAB’], description=‘branch2’)
[gsheets] adding host: (name=‘FGTTESTABC456’, address=‘172.29.255.251’, groups=[‘LAB’, ‘andy’], description=‘branch3’)
[gsheets] finished adding hosts
{
“AUS”: {
“hosts”: [
“FGT60ETK19099QQQ”
]
},
“GERMANY”: {
“hosts”: [
“FGT60ETK19099YYY”
]
},
“LAB”: {
“hosts”: [
“FGTTESTABC123”,
“FGTTESTABC456”
]
},
“RB1”: {
“hosts”: [
“FGT60ETK19099QQQ”
]
},
“RB2”: {
“hosts”: [
“FGT60ETK19099YYY”
]
},
“UK”: {
“hosts”: [
“FGT60ETK19099ZZZ”
]
},
“_meta”: {
“hostvars”: {
“FGT60ETK19099ZZZ”: {
“_awx_description”: “UK_TEST_UK06”,
“ansible_host”: “172.29.252.8”,
“appliance_name”: “UK_TEST_UK06”,
“gsheets_credentials_filepath”: “private/credentials.json”,
“gsheets_sheet_id”: “1GacYZXvmEyGARBAGEB_H5uVGIl8z7qgcjvnVezDuXA”,
“gsheets_worksheet_name”: “TEST1”,
“ipsec_endpoint”: “18.39.191.70”,
“is_automated”: “YES”,
“is_onboarded”: “YES”,
“management_ip”: “172.29.252.8”,
“model”: “FG-60E”,
“rulebase”: “andy”,
“serial”: “FGT60ETK19099ZZZ”,
“wan1_mode”: “FOOBARZ”
},
“FGT60ETK19099YYY”: {
“_awx_description”: “GERMANY_TEST_02”,
“ansible_host”: “172.29.252.17”,
“appliance_name”: “GERMANY_TEST_02”,
“gsheets_credentials_filepath”: “private/credentials.json”,
“gsheets_sheet_id”: “1GacYZXvmEyGARBAGEB_H5uVGIl8z7qgcjvnVezDuXA”,
“gsheets_worksheet_name”: “TEST1”,
“ipsec_endpoint”: “18.39.191.70”,
“is_automated”: “YES”,
“is_onboarded”: “YES”,
“management_ip”: “172.29.252.17”,
“model”: “FG-60E”,
“rulebase”: “RB2”,
“serial”: “FGT60ETK19099YYY”,
“wan1_mode”: “TEST2”
},
“FGT60ETK19099QQQ”: {
“_awx_description”: “AUS_TEST1”,
“ansible_host”: “172.29.252.1”,
“appliance_name”: “AUS_TEST1”,
“gsheets_credentials_filepath”: “private/credentials.json”,
“gsheets_sheet_id”: “1GacYZXvmEyGARBAGEB_H5uVGIl8z7qgcjvnVezDuXA”,
“gsheets_worksheet_name”: “TEST1”,
“ipsec_endpoint”: “18.39.191.70”,
“is_automated”: “NO”,
“is_onboarded”: “YES”,
“management_ip”: “172.29.252.1”,
“model”: “FG-60E”,
“rulebase”: “RB1”,
“serial”: “FGT60ETK19099QQQ”,
“wan1_mode”: “dhcp”
},
“FGTTESTABC123”: {
“_awx_description”: “branch2”,
“ansible_host”: “172.29.255.250”,
“appliance_name”: “branch2”,
“gsheets_credentials_filepath”: “private/credentials.json”,
“gsheets_sheet_id”: “1GacYZXvmEyGARBAGEB_H5uVGIl8z7qgcjvnVezDuXA”,
“gsheets_worksheet_name”: “TEST1”,
“ipsec_endpoint”: “10.210.195.1”,
“is_automated”: “YES”,
“is_onboarded”: “YES”,
“management_ip”: “172.29.255.250”,
“model”: “VM”,
“serial”: “FGTTESTABC123”,
“wan1_mode”: “TEST123”
},
“FGTTESTABC456”: {
“_awx_description”: “branch3”,
“ansible_host”: “172.29.255.251”,
“appliance_name”: “branch3”,
“gsheets_credentials_filepath”: “private/credentials.json”,
“gsheets_sheet_id”: “1GacYZXvmEyGARBAGEB_H5uVGIl8z7qgcjvnVezDuXA”,
“gsheets_worksheet_name”: “TEST1”,
“ipsec_endpoint”: “10.210.195.1”,
“is_automated”: “YES”,
“is_onboarded”: “YES”,
“management_ip”: “172.29.255.251”,
“model”: “VM”,
“rulebase”: “andy”,
“serial”: “FGTTESTABC456”,
“wan1_mode”: “TEST456”
}
}
},
“all”: {
“children”: [
“AUS”,
“GERMANY”,
“LAB”,
“RB1”,
“RB2”,
“UK”,
“andy”,
“ungrouped”
]
},
“andy”: {
“hosts”: [
“FGT60ETK19099ZZZ”,
“FGTTESTABC456”
]
}
}