Code Monkey home page Code Monkey logo

ansible-modules's Introduction

Ansible Modules

This repository contains some Ansible modules that I wrote earlier.

If you like some module and you want to merge it into the upstream, then feel free to do it. But please, do not make me involved. I was contributing to Ansible earlier, but not anymore.

List of Modules

eselect

Module for Gentoo’s multi-purpose configuration and management tool eselect.

ldap

This module adds, modifies and removes entries in LDAP server, similarly as ldapmodify command.

ldap_passwd

This module modifies password of an LDAP or Active Directory user.

mktemp_dir

Very simple module that creates a temporary directory on the remote server and returns its path.

mongodb_replset

This module allows to initiate a new replica set or add new members to an existing one. It can’t remove members from a replica set, this should be always done with caution by hand.

mvn_get

Downloads artifacts from Maven repository. Resolves version of the artifact, but does not resolve its dependencies. It’s intended just for fetching single artifact from repository, nothing more.

nameservers_facts

Collects nameservers from /etc/resolv.conf as facts.

postgresql_exec

This module is intended for initializing database schema and maybe populating with some seed data from a SQL script. However, it can be used to execute any SQL commands. It is up to the user to maintain idempotence.

License

All modules are licensed under GPLv3. For the full text of the license, see the LICENSE file.

ansible-modules's People

Contributors

jirutka avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

ansible-modules's Issues

Error running on ansible 2.2.2.0

Hi Jirutka,

Your module looks really useful but I'm having some trouble getting it to run. Hopefully it's just a simple user error..

    - name: seed  database
      postgresql_exec:
        src: files/wibble/seed.sql
        database: wibble
        login_host: 192.168.10.96
        login_user: wibble
        login_password: wibble
/opt/python-tools pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
ansible (2.2.2.0)
appdirs (1.4.3)
asn1crypto (0.22.0)
awscli (1.11.36)
boto (2.45.0)
botocore (1.4.93)
cffi (1.10.0)
colorama (0.3.7)
cryptography (1.8.1)
docutils (0.13.1)
enum34 (1.1.6)
futures (3.0.5)
idna (2.5)
ipaddress (1.0.18)
j2cli (0.3.1-0)
Jinja2 (2.9.5)
jmespath (0.9.0)
MarkupSafe (1.0)
packaging (16.8)
paramiko (2.1.2)
pip (9.0.1)
pyasn1 (0.2.3)
pycparser (2.17)
pycrypto (2.6.1)
pyparsing (2.2.0)
python-dateutil (2.6.0)
PyYAML (3.12)
rsa (3.4.2)
s3transfer (0.1.10)
setuptools (34.3.3)
six (1.10.0)
slugify (0.0.1)
wheel (0.29.0)
ERROR! Unexpected Exception: cannot import name template
the full traceback was:

Traceback (most recent call last):                                                                                                                               File "/opt/python-tools/bin/ansible-playbook", line 103, in <module>                                                                                             exit_code = cli.run()                                                                                                                                        File "/opt/python-tools/local/lib/python2.7/site-packages/ansible/cli/playbook.py", line 159, in run
    results = pbex.run()
  File "/opt/python-tools/local/lib/python2.7/site-packages/ansible/executor/playbook_executor.py", line 154, in run                                               result = self._tqm.run(play=play)                                                                                                                            File "/opt/python-tools/local/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py", line 282, in run
    play_return = strategy.run(iterator, play_context)
  File "/opt/python-tools/local/lib/python2.7/site-packages/ansible/plugins/strategy/linear.py", line 203, in run                                                  action = action_loader.get(task.action, class_only=True)                                                                                                     File "/opt/python-tools/local/lib/python2.7/site-packages/ansible/plugins/__init__.py", line 339, in get                                                         self._module_cache[path] = self._load_module_source('.'.join([self.package, name]), path)
  File "/opt/python-tools/local/lib/python2.7/site-packages/ansible/plugins/__init__.py", line 324, in _load_module_source
    module = imp.load_source(name, path, module_file)                                                                                                            File "/home.local/gilesadm/work/ansible-config/addons/jirutka/ansible-modules/action_plugins/postgresql_exec.py", line 19, in <module>                           from ansible.utils import template                                                                                                                         ImportError: cannot import name template

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.