mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
* Initial commit
* Adding changelog fragment
* Applying initial review suggestions
(cherry picked from commit 111c5de550
)
Co-authored-by: Ajpantuso <ajpantuso@gmail.com>
This commit is contained in:
parent
754cd31195
commit
e3e25b60d3
3 changed files with 15 additions and 3 deletions
|
@ -353,6 +353,9 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
|
|||
if node['type'] == 'node':
|
||||
self.inventory.add_child(nodes_group, node['node'])
|
||||
|
||||
if node['status'] == 'offline':
|
||||
continue
|
||||
|
||||
# get node IP address
|
||||
ip = self._get_node_ip(node['node'])
|
||||
self.inventory.set_variable(node['node'], 'ansible_host', ip)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue