mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fixing hetzner consul ips.
This commit is contained in:
parent
1fa902f6a1
commit
f6a2a910ff
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ import subprocess
|
|||
import digitalocean
|
||||
|
||||
|
||||
def get_host_ips_from_group(group_name, inventory_base_path='/srv/newsblur/ansible/inventories/'):
|
||||
def get_host_ips_from_group(group_name):
|
||||
"""
|
||||
Fetches IP addresses of hosts from a specified group using ansible-inventory command across combined inventory.
|
||||
|
||||
|
@ -14,7 +14,7 @@ def get_host_ips_from_group(group_name, inventory_base_path='/srv/newsblur/ansib
|
|||
:param inventory_base_path: Base path to the inventory directories. Defaults to the path in ansible.cfg.
|
||||
:return: A list of IP addresses belonging to the specified group.
|
||||
"""
|
||||
cmd = ['ansible-inventory', '--list']
|
||||
cmd = ['ansible-inventory', '-i', '/srv/newsblur/ansible/inventories/hetzner.ini', '-i', '/srv/newsblur/ansible/inventories/hetzner.yml', '--list']
|
||||
|
||||
try:
|
||||
# Execute the ansible-inventory command
|
||||
|
|
Loading…
Add table
Reference in a new issue