From d29fa98a38f2ba8b0dd4cb2d6d08606bfaef555e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Ob=C5=AFrka?= Date: Tue, 5 Apr 2016 18:22:33 +0200 Subject: Initial commit - add skeleton of module --- .gitignore | 2 ++ uci.py | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .gitignore create mode 100644 uci.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..08236e9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +## Development environment +ansible/ diff --git a/uci.py b/uci.py new file mode 100644 index 0000000..d64b8fa --- /dev/null +++ b/uci.py @@ -0,0 +1,30 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# (c) 2016, Robin Obůrka +# +# This module is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This software is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this software. If not, see . + +def main(): + module = AnsibleModule( + argument_spec = dict( + name = dict(aliases=["key"], required=True) + ) + ) + + +# import module snippets +from ansible.module_utils.basic import * + +main() -- cgit v1.2.3