Changes references to ansible_facts (FA_RA) (#61355)
This commit is contained in:
parent
05afc28d08
commit
948023176e
2 changed files with 6 additions and 3 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- purefa_ra - change resulting fact dict from I(ansible_facts) to I(ra_info) (https://github.com/ansible/ansible/pull/61355)
|
|
@ -38,9 +38,10 @@ EXAMPLES = r'''
|
||||||
purefa_ra:
|
purefa_ra:
|
||||||
fa_url: 10.10.10.2
|
fa_url: 10.10.10.2
|
||||||
api_token: e31060a7-21fc-e277-6240-25983c6c4592
|
api_token: e31060a7-21fc-e277-6240-25983c6c4592
|
||||||
|
register: result
|
||||||
|
|
||||||
debug:
|
- debug:
|
||||||
var: ansible_facts.fa_ra
|
msg: "Remote Assist: {{ result['ra_info'] }}"
|
||||||
|
|
||||||
- name: Disable Remote Assist port
|
- name: Disable Remote Assist port
|
||||||
purefa_ra:
|
purefa_ra:
|
||||||
|
@ -75,7 +76,7 @@ def enable_ra(module, array):
|
||||||
'port': ra_data['port']}
|
'port': ra_data['port']}
|
||||||
except Exception:
|
except Exception:
|
||||||
module.fail_json(msg='Getting Remote Assist failed')
|
module.fail_json(msg='Getting Remote Assist failed')
|
||||||
module.exit_json(changed=changed, ansible_facts=ra_facts)
|
module.exit_json(changed=changed, ra_info=ra_facts)
|
||||||
|
|
||||||
|
|
||||||
def disable_ra(module, array):
|
def disable_ra(module, array):
|
||||||
|
|
Loading…
Reference in a new issue