mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix update check issue (#20915)
Add one of condition in required_if to ensure configuration statements are present if update value in provided in playbook.
This commit is contained in:
parent
6726d5f8f8
commit
511f2b7907
1 changed files with 3 additions and 3 deletions
|
@ -346,9 +346,9 @@ def main():
|
||||||
('update', 'replace')]
|
('update', 'replace')]
|
||||||
|
|
||||||
required_if = [('replace', True, ['src']),
|
required_if = [('replace', True, ['src']),
|
||||||
('update', 'merge', ('src', 'lines')),
|
('update', 'merge', ['src', 'lines'], True),
|
||||||
('update', 'overwrite', ('src', 'lines')),
|
('update', 'overwrite', ['src', 'lines'], True),
|
||||||
('update', 'replace', ('src', 'lines'))]
|
('update', 'replace', ['src', 'lines'], True)]
|
||||||
|
|
||||||
module = NetworkModule(argument_spec=argument_spec,
|
module = NetworkModule(argument_spec=argument_spec,
|
||||||
mutually_exclusive=mutually_exclusive,
|
mutually_exclusive=mutually_exclusive,
|
||||||
|
|
Loading…
Reference in a new issue