gilesw / ansible-postgresql_exec Goto Github PK
View Code? Open in Web Editor NEWAnsible module to run Postgres SQL statements with pycog2 forked from https://github.com/jirutka/ansible-modules
License: GNU General Public License v3.0
Ansible module to run Postgres SQL statements with pycog2 forked from https://github.com/jirutka/ansible-modules
License: GNU General Public License v3.0
- name: create pg_trgm and ltree extension for indexing like queries
postgresql_exec:
content: "{{ item }}"
db: "wibble"
login_host: "localhost"
login_user: "wibble"
login_password: "wibble"
with_items:
- "create extension if not exists pg_trgm"
- "create extension if not exists ltree"
ignore_errors: true
run_once: true
changed_when: False
2019-02-28 15:43:26,087 p=21097 u=gilesadm | ERROR! [pid 21115] 15:43:26.087054 I mitogen.ctx.ssh.xxxx: stderr: self._return_formatted(kwargs)
2019-02-28 15:43:26,152 p=21097 u=gilesadm | ERROR! [pid 21115] 15:43:26.152651 I mitogen.ctx.ssh.xxxx: stderr: File "master:/opt/python-tools/lib/python2.7/site-packages/ansible/module_utils/basic.py", line 2342, in _return_formatted
2019-02-28 15:43:26,153 p=21097 u=gilesadm | ERROR! [pid 21115] 15:43:26.152955 I mitogen.ctx.ssh.xxxx: stderr: print('\n%s' % self.jsonify(kwargs))
2019-02-28 15:43:26,153 p=21097 u=gilesadm | ERROR! [pid 21115] 15:43:26.153250 I mitogen.ctx.ssh.cspbwbluclprt160x1.ext.dyn.semcs.net: stderr: ValueError: I/O operation on closed file
2019-02-28 15:43:26,153 p=21097 u=gilesadm | [pid 21115] 15:43:26.153545 D mitogen.ctx.ssh.xxxx: mitogen: _dispatch_calls: Message(1004, 2009, 0, 101, 1003, '\x80\x02(U,devgiles01c-21356-7fb50a767700-582f626abf77eq'..1747) -> CallError(u'exceptions.AttributeError: \'file\' object has no attribute \'getvalue\'\n File "<stdin>", line 3078, in _dispatch_one\n File "master:/home.local/gilesadm/work/ansible-config/mitogen-0.2.5/ansible_mitogen/target.py", line 430, in run_module\n return impl.run()\n File "master:/home.local/gilesadm/work/ansible-config/mitogen-0.2.5/ansible_mitogen/runner.py", line 382, in run\n return self._run()\n File "master:/home.local/gilesadm/work/ansible-config/mitogen-0.2.5/ansible_mitogen/runner.py", line 887, in _run\n u\'stdout\': mitogen.core.to_text(sys.stdout.getvalue()),\n',)
runs fine on standard with output:-
ok: [xxxx] => (item=create extension if not exists ltree) => {"changed": false, "item": "create extension if not exists ltree", "rowcount": -1, "rowfirst": null, "rows": null, "statusmessage": "CREATE EXTENSION"}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.