summaryrefslogtreecommitdiffstats
path: root/library/warn.py
diff options
context:
space:
mode:
Diffstat (limited to 'library/warn.py')
-rw-r--r--library/warn.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/library/warn.py b/library/warn.py
new file mode 100644
index 0000000..de6421c
--- /dev/null
+++ b/library/warn.py
@@ -0,0 +1,14 @@
+
+from ansible.module_utils.basic import *
+
+def main():
+ spec = {
+ 'msg' : { 'required': True, 'type': 'str' }
+ }
+
+ module = AnsibleModule(argument_spec=spec)
+ module.exit_json(changed=False, warnings=[ module.params['msg'] ])
+
+
+if __name__ == '__main__':
+ main() \ No newline at end of file