Closed jwbernin closed 4 years ago
when returning subnets from foreman_search_facts, there is no information on which organizations, locations, or domains are associated with the given subnet
ansible 2.8.0 config file = /nfshome/jberning/ansible/ansible.cfg configured module search path = ['/nfshome/jberning/Projects/foreman-ansible-modules/plugins/modules'] ansible python module location = /usr/lib/python3.6/site-packages/ansible executable location = /usr/bin/ansible python version = 3.6.8 (default, Apr 3 2019, 17:26:03) [GCC 8.2.1 20180905 (Red Hat 8.2.1-3)]
tfm-rubygem-katello-3.10.0.48-1.el7sat.noarch foreman-1.20.1.34-1.el7sat.noarch
Version: 0.0.2
- name: Get Subnets foreman_search_facts: username: "{{ satellite_user }}" password: "{{ satellite_password }}" server_url: "https://{{ satellite_host }}" validate_certs: false resource: subnets register: subnets - debug: var: subnets
Expected to see list of domains, organizations, and locations as part of the debug output
See only:
TASK [dump_config : debug] ***************************************************** ok: [localhost] => { "subnets": { "changed": false, "failed": false, "resources": [ { "boot_mode": "Static", "cidr": 24, "created_at": "2019-10-03 14:41:31 UTC", "description": "", "dhcp": null, "dhcp_id": null, "dhcp_name": null, "discovery": null, "discovery_id": null, "discovery_name": null, "dns": null, "dns_id": null, "dns_primary": "10.1.0.6", "dns_secondary": "", "from": "", "gateway": "10.1.0.1", "httpboot": null, "httpboot_id": null, "httpboot_name": null, "id": 1, "ipam": "None", "mask": "255.255.255.0", "mtu": 1500, "name": "homelab", "network": "10.1.0.0", "network_address": "10.1.0.0/24", "network_type": "IPv4", "priority": null, "template": null, "template_id": null, "template_name": null, "tftp": null, "tftp_id": null, "tftp_name": null, "to": "", "updated_at": "2019-10-03 14:41:31 UTC", "vlanid": null } ] } }
Similar behavior when searching on domains.
full_details: yes is what I wanted.
SUMMARY
when returning subnets from foreman_search_facts, there is no information on which organizations, locations, or domains are associated with the given subnet
ISSUE TYPE
ANSIBLE VERSION
KATELLO/FOREMAN VERSION
APYPIE VERSION
STEPS TO REPRODUCE
EXPECTED RESULTS
Expected to see list of domains, organizations, and locations as part of the debug output
ACTUAL RESULTS
See only: