Hi, why not simply have two different modules? (With shared code in module_utils?)
You could also not use AnsibleModule, but do all the communication by yourself (like binary modules). That way you can essentially do what you want. Cheers, Felix > That is helpful, but would it be possible to have two sets of > argument_spec for more complicated differences in the parameters? > > example pseudocode for module: > > argument_spec1=dict(...) > argument_spec2=dict(...) > > # get version from YAML > > # pass corresponding argument_spec to AnsibleModule based on version > > > It seems like it's not possible with the standard module, but it > would be helpful if there was a way. -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-devel/20200710182543.161ab43b%40rovaniemi.