|
|
|
@ -493,8 +493,12 @@ def main():
|
|
|
|
|
elif decon.rg_facts['status'] == "DELETED":
|
|
|
|
|
if amodule.params['state'] == 'absent' and amodule.params['permanently'] == True:
|
|
|
|
|
decon.destroy()
|
|
|
|
|
elif amodule.params['state'] == 'present':
|
|
|
|
|
elif (amodule.params['state'] == 'present'
|
|
|
|
|
or amodule.params['state'] == 'disabled'):
|
|
|
|
|
decon.restore()
|
|
|
|
|
elif amodule.params['state'] == 'enabled':
|
|
|
|
|
decon.restore()
|
|
|
|
|
decon.enable()
|
|
|
|
|
elif decon.rg_facts['status'] in ("DISABLED"):
|
|
|
|
|
if amodule.params['state'] == 'absent':
|
|
|
|
|
decon.destroy()
|
|
|
|
|