diff options
| author | 2016-04-05 18:22:33 +0200 | |
|---|---|---|
| committer | 2016-04-05 18:22:33 +0200 | |
| commit | d29fa98a38f2ba8b0dd4cb2d6d08606bfaef555e (patch) | |
| tree | 3bef7133b49c66cbbcc45074448ab0d57e5afeef | |
| download | ansible-uci-d29fa98a38f2ba8b0dd4cb2d6d08606bfaef555e.tar.xz | |
Initial commit - add skeleton of module
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | uci.py | 30 | 
2 files changed, 32 insertions, 0 deletions
| diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..08236e9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +## Development environment +ansible/ @@ -0,0 +1,30 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# (c) 2016, Robin Obůrka <r.oburka@gmail.com> +# +# 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 <http://www.gnu.org/licenses/>. + +def main(): +    module = AnsibleModule( +        argument_spec = dict( +            name = dict(aliases=["key"], required=True) +        ) +    ) + + +# import module snippets +from ansible.module_utils.basic import * + +main() | 
