mirror of
https://github.com/ansible/awx.git
synced 2026-03-16 08:27:29 -02:30
Update cloudforms dynamic inventory
Pulling the latest from https://github.com/ansible/ansible/blob/devel/contrib/inventory/cloudforms.py Related #3168
This commit is contained in:
@@ -1319,9 +1319,14 @@ class RunInventoryUpdate(BaseTask):
|
||||
|
||||
credential = inventory_update.credential
|
||||
if credential:
|
||||
cp.set(section, 'hostname', credential.host)
|
||||
cp.set(section, 'url', credential.host)
|
||||
cp.set(section, 'username', credential.username)
|
||||
cp.set(section, 'password', decrypt_field(credential, 'password'))
|
||||
cp.set(section, 'ssl_verify', "false")
|
||||
|
||||
section = 'cache'
|
||||
cp.add_section(section)
|
||||
cp.set(section, 'max_age', "0")
|
||||
|
||||
elif inventory_update.source == 'azure_rm':
|
||||
section = 'azure'
|
||||
|
||||
Reference in New Issue
Block a user