mirror of
https://github.com/trailofbits/algo.git
synced 2025-07-26 15:33:01 +02:00
Improved secret gathering
This commit is contained in:
parent
32a8b08c3a
commit
2a22234a67
1 changed files with 10 additions and 7 deletions
|
@ -186,10 +186,13 @@ class PlaybookCLI(CLI):
|
||||||
|
|
||||||
display.display(taskmsg)
|
display.display(taskmsg)
|
||||||
|
|
||||||
return inventory.groups['vpn-host'].hosts[0].vars
|
host = inventory.groups['vpn-host'].hosts[0].name
|
||||||
|
fact_cache = pbex._variable_manager._nonpersistent_fact_cache[host]
|
||||||
@staticmethod
|
return {
|
||||||
def _flush_cache(inventory, variable_manager):
|
'CA_password': fact_cache['CA_password'],
|
||||||
for host in inventory.list_hosts():
|
'p12_export_password': fact_cache['p12_export_password'],
|
||||||
hostname = host.get_name()
|
'algo_server_name': variable_manager.extra_vars['server_name'],
|
||||||
variable_manager.clear_facts(hostname)
|
'ipv6_support': fact_cache['ipv6_support'],
|
||||||
|
'local_service_ip': variable_manager.get_vars()['hostvars'][host]['ansible_lo']['ipv4_secondaries'][0]['address'],
|
||||||
|
'ansible_ssh_host': host,
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue