Closed luto closed 6 years ago
Add argument groups of which at least one must be given (e.g. --webserver or --mailserver when adding a domain).
--webserver
--mailserver
- hosts: paternoster vars: description: Do something parameters: - name: webserver short: d action: store_true - name: mailserver short: q action: store_true required_one_of: - - webserver - mailserver
(just like ansible http://mobygeek.net/blog/2016/02/16/ansible-module-development-parameters/)
Add argument groups of which at least one must be given (e.g.
--webserver
or--mailserver
when adding a domain).(just like ansible http://mobygeek.net/blog/2016/02/16/ansible-module-development-parameters/)