Ansiblator
==========
This wrapper allows more quicker and easier way to use ansible in python
ansible without playbooks, so more like fabric.
Ansible is then more powerfull and it will allow to chain commands with
python commands.
Get started
===========
For instalation you can download package and then just unpack and use
python setup.py install
or
pip install ansiblator
Quick use case
==============
For most quickest example you can just create your ansible file named
ansible_hosts inside your home directory or full path
from ansiblator.api import Ansiblator
ans = Ansiblator()
ret = ans.local("uname -a", now=True, use_shell=True)
ans.run("uname -a", now=True)
ans.runner("uptime")
ans.run_all()
ans.copy(src="/tmp/aabc.csv", dest="/tmp/",pattern="pc",now=True)
More useable way
================
Ansiblator automatically save return json values for actuall runs, so
you can use them for testing and conditions
Info
====
For more information consult functions or ansible documentation.
more information can be also used on www.pripravto.cz. You can also
contact me there
==========
This wrapper allows more quicker and easier way to use ansible in python
ansible without playbooks, so more like fabric.
Ansible is then more powerfull and it will allow to chain commands with
python commands.
Get started
===========
For instalation you can download package and then just unpack and use
python setup.py install
or
pip install ansiblator
Quick use case
==============
For most quickest example you can just create your ansible file named
ansible_hosts inside your home directory or full path
from ansiblator.api import Ansiblator
ans = Ansiblator()
ret = ans.local("uname -a", now=True, use_shell=True)
ans.run("uname -a", now=True)
ans.runner("uptime")
ans.run_all()
ans.copy(src="/tmp/aabc.csv", dest="/tmp/",pattern="pc",now=True)
More useable way
================
Ansiblator automatically save return json values for actuall runs, so
you can use them for testing and conditions
Info
====
For more information consult functions or ansible documentation.
more information can be also used on www.pripravto.cz. You can also
contact me there
Release files for ansiblator 0.5-1-28-09-2014
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ansiblator-0.5-1-28-09-2014.tar.gz | 5.8 kB | Details |
Release files / ansiblator-0.5-1-28-09-2014.tar.gz
| Download URL | ansiblator-0.5-1-28-09-2014.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00cf375e32a1a9a0a2c5fe9a8671d19f7579ae85f31829dbdb4f71a104b7cdf5
|
|
BLAKE2b-256 checksum How to use checksums |
abc3b9225eaea3c67bf819b366b21f0265cbe27bc21abadb6c634c929cb6c8de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |