Thomas O'Donnell
571837b199
Add trust_input to postgresql_user_obj_stat_info ( #310 )
...
Have added a trust_input option to the postgresql_user_obj_stat_info
module. This only checks the session_role since all other options are
passed as parameters.
2020-05-10 15:56:19 +03:00
Jon Dufresne
159e2bb734
flatpak: Build commands as lists instead of strings ( #269 )
...
Using a list ensures that all subprocess arguments are correctly
escaped. By building strings and then calling .split(), potential
arguments with a space will be incorrectly split over two arguments.
When a string is needed for presentation, join to the list to build the
string.
2020-05-10 14:46:10 +02:00
Ulf Tigerstedt
06769c4e69
Fixes for ipa_group and ipa_user to show that uidnumber/gidnumber needs to be strings not numbers ( #300 )
2020-05-10 14:45:35 +02:00
Sven Anders
dae5472206
Fix udm_dns_record example, fixing #315 ( #316 )
2020-05-10 14:40:12 +02:00
Andrew Klychkov
acc7bc1ea6
postgresql_info: add the trust_input parameter ( #308 )
...
* postgresql_info: add the trust_input parameter
* add changelog fragment
2020-05-09 11:24:20 +03:00
Andrew Klychkov
156d90ce90
postgresql_table: add the trust_input parameter ( #307 )
...
* postgresql_table: add the trust_input parameter
* add changelog fragment
2020-05-09 11:23:33 +03:00
Jon Dufresne
f2af41d842
flatpak: Change use of Popen to module.run_command() ( #274 )
...
* flatpak: Change use of Popen to module.run_command()
* Update changelogs/fragments/274-flatpak-run-command.yaml
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
2020-05-09 10:03:04 +02:00
Andrew Klychkov
55c1ece888
postgresql modules: improve trust_input parameter's documentation, improve CI tests ( #309 )
...
* postgresql modules: improve trust_input parameter's documentation, improve CI tests
* fix CI
2020-05-09 09:25:12 +03:00
Felix Fontein
85cbc27427
Improve Ansible 2.9 compatibility ( #306 )
...
* Adjust ignore-2.9.txt.
* Workaround for load_file_common_arguments's path option (similar to ansible-collections/community.crypto#14 ).
* Add changelog.
2020-05-08 14:38:23 +01:00
Abhijeet Kasurde
5cdb646ab7
Updated listen_ports_facts documentation ( #301 )
...
Updated listen_ports_facts module documentation to reflect
- Linux only support
- Required netstat command
Fixes : ansible/ansible#68077
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-05-07 19:31:40 +01:00
Thomas O'Donnell
f887aff159
Add trust_input option to postgresql_slot module ( #298 )
...
* Add trust_input option to postgresql_slot module
Have added a trust_input option to the postgresql_slot module. This
only checks the session_role since all other options are passed as
parameters.
* Add Changelog fragment
* Update docs following PR review
2020-05-07 18:26:15 +03:00
Andrew Klychkov
c47a2128ca
postgresql_query: add trust_input parameter ( #294 )
...
* postgresql_query: add trust_input parameter
* add changelog fragment
* fix CI
2020-05-07 12:49:53 +03:00
Thomas O'Donnell
e4dd15a746
postgresql_sequence: add trust_input option ( #295 )
...
* Add trust_input option to postgresql_sequence
Have added the trust_input option to the postgresql_sequence module.
* Add changelog fragment
Have added a changelog fragment for these changes.
2020-05-07 09:07:49 +03:00
Matt Davis
9ff2c7685f
move jsonfile cache plugin back to ansible-base ( #287 )
...
* move jsonfile cache plugin back to ansible-base
* Delete remove_jsonfile.yml
No needed as we haven't released `community.general` yet
Co-authored-by: John R Barker <john@johnrbarker.com>
2020-05-06 18:37:03 +01:00
Christopher May-Townsend
043e2e969a
Update documentation for example of redis connection string ( #288 )
...
* Update documentation for example of redis connection string
* Update plugins/cache/redis.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* updated example on a single line
Co-authored-by: Felix Fontein <felix@fontein.de>
2020-05-06 08:30:39 +01:00
Charles C
3599b8afdc
datadog_monitor: adds missing 'log alert' type to supported types ( #277 )
...
* adds missing 'log alert' type to supported types
* added changelog fragment
* Update changelogs/fragments/277-datadog_monitor-adds-missing-log-alert-type.yml
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-05-06 08:15:37 +03:00
Andrew Klychkov
4af49abd00
mysql_user: add invoke lambda privilege support ( #285 )
...
* mysql_user: add invoke lambda privilege support
* add changelog fragment
2020-05-05 16:40:27 +03:00
Andrew Klychkov
19cad71f25
postgresql_lang: add trust_input parameter ( #272 )
...
* postgresql_lan: add trust_input parameter
* add changelog fragment
2020-05-05 16:37:08 +03:00
Andrew Klychkov
e6b6c05bf7
postgresql_publication: add trust_input and session_role parameters ( #279 )
...
* postgresql_publication: add trust_input and session_role parameters
* add changelog fragment
2020-05-05 16:36:14 +03:00
Andrew Klychkov
30e84111f0
postgresql_subscription: add trust_input and session_role parameters ( #280 )
...
* postgresql_subscription: add trust_input and session_role parameters
* add changelog fragment
2020-05-05 16:35:34 +03:00
Andrew Klychkov
4c14956280
postgresql_idx: add trust_input parameter ( #264 )
...
* postgresql_idx: add trust_input parameter
* add changelog fragment
2020-05-05 16:33:06 +03:00
Andrew Klychkov
2bc89b56e8
java_keystore: fix doc format ( #281 )
2020-05-05 15:09:33 +03:00
Thomas O'Donnell
6c1c1604fb
Add optional input check to postgresql_ext ( #282 )
...
* Add optional input check to postgresql_ext
Have added a new trust_input check to the postgresql_ext module that
allows for checking the input that is passed to the module.
* Add changelog fragment
* Update tests/integration/targets/postgresql_ext/tasks/postgresql_ext_initial.yml
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-05-05 15:04:33 +03:00
Andrew Klychkov
177314321b
zfs_delegate_admin: fix example ( #284 )
2020-05-05 16:57:41 +05:30
Lauri Tirkkonen
75107c807c
zfs_delegate_admin: add diff,hold,release to list of permissions ( #278 )
...
Co-authored-by: Lauri Tirkkonen <lauri@tuxera.com>
2020-05-05 14:02:14 +03:00
Jon Dufresne
385d03a629
Document argument types for flatpak and flatpak_remote ( #270 )
2020-05-04 16:42:15 +02:00
Felix Fontein
a85b169a0e
Fix invalid 'sample' value (not a JSON value, since dictionary has non-string key). ( #262 )
2020-05-02 16:36:20 +03:00
Andrew Klychkov
01eee507f2
postgresql_tablespace: add trust_input parameter ( #240 )
...
* postgresql_tablespace: add trust_input parameter
* add changelog fragment
2020-05-01 14:10:13 +03:00
Andrew Klychkov
c68f17f09b
postgresql_schema: add trust_input parameter ( #259 )
...
* postgresql_schema: add trust_input parameter
* add changelog fragment
2020-05-01 14:09:23 +03:00
Lucas Basquerotto
055c18c892
cloudflare_dns: fix KeyError ( #243 )
...
Fix errors of the type KeyError: 'success' to show a more meaningful message
Fixes : #236
2020-04-29 11:58:10 +05:30
Andrew Klychkov
d386506728
proxmox: fix examples formatting ( #248 )
...
* proxmox: fix examples formatting
* fix
2020-04-28 17:22:02 +03:00
Brian Scholer
eaa484eb37
hashi_vault refresh - Add AWS login methods, bugfixes, cleanup ( #23 )
...
* hashi_vault refresh from PR in ansible/ansible/#66735
* Duplicate AWS doc fragments, remove version_added
* Restore FQCNames
* Fully qualify examples
* Add changelog for #23 hash_vault refresh
* Reduce examples below 160 chars
* Address review feedback
* Update changelogs/fragments/23-hashi-vault-lookup-refresh.yaml
Use review suggestion
Co-Authored-By: flowerysong <junk+github@flowerysong.com>
Co-authored-by: flowerysong <junk+github@flowerysong.com>
2020-04-28 11:27:37 +00:00
Andrew Klychkov
5febbca503
postgresql_owner: add trust_input parameter ( #198 )
...
* postgresql_owner: add trust_input parameter, allow to pass values containing dots to some parameters
* add changelog fragment
* fix CI
* fix CI
2020-04-28 10:42:08 +03:00
Andrea Scarpino
c2e37d202a
parted: support fs_type ( #221 )
...
* parted: support fs_type
Closes #135
* Update plugins/modules/system/parted.py
Co-Authored-By: Andrew Klychkov <aaklychkov@mail.ru>
* Update plugins/modules/system/parted.py
Co-Authored-By: Andrew Klychkov <aaklychkov@mail.ru>
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-04-27 18:30:48 +03:00
Eric Belhomme
695eed943b
add etcd3 lookup plugin ( #127 )
...
* add etcd3 lookup plugin
* retire version_added tag
Co-Authored-By: Felix Fontein <felix@fontein.de>
* typo fixes
Co-Authored-By: Felix Fontein <felix@fontein.de>
* fix YAML syntax in example
Co-Authored-By: Felix Fontein <felix@fontein.de>
* typo fixes
Co-Authored-By: Felix Fontein <felix@fontein.de>
* remove python shebang as it is useless in Ansible lookup module
Co-Authored-By: Felix Fontein <felix@fontein.de>
* Update plugins/lookup/etcd3.py typo
Co-Authored-By: Felix Fontein <felix@fontein.de>
* fixes:
- replaced LookupBase._display by ansible.utils.display.Display
- add regex to retrieve host and port from ETCDCTL_ENDPOINTS env
- add env support for user, password, timeout
* fixes:
- use short form for types
- update doc section with envs
- catch exceptions between etcd3 api calls
* etcd3 lookup pass ansible sanity checks
introduce ansible integration tests for etcd3 lookup
* extract etcd3 setup from existing etcd3 module integration test
* fix etcd3 module/lookup integration tests
* fixes:
- fix port option in docstring
- raise connecttion error
- fix display format issues
- fix ETCDCTL_ENDPOINTS regex
adds:
- basic unit tests
* fix sanity issues
* add etcd3 lookup plugin
* retire version_added tag
Co-Authored-By: Felix Fontein <felix@fontein.de>
* typo fixes
Co-Authored-By: Felix Fontein <felix@fontein.de>
* fix YAML syntax in example
Co-Authored-By: Felix Fontein <felix@fontein.de>
* typo fixes
Co-Authored-By: Felix Fontein <felix@fontein.de>
* remove python shebang as it is useless in Ansible lookup module
Co-Authored-By: Felix Fontein <felix@fontein.de>
* Update plugins/lookup/etcd3.py typo
Co-Authored-By: Felix Fontein <felix@fontein.de>
* fixes:
- replaced LookupBase._display by ansible.utils.display.Display
- add regex to retrieve host and port from ETCDCTL_ENDPOINTS env
- add env support for user, password, timeout
* fixes:
- use short form for types
- update doc section with envs
- catch exceptions between etcd3 api calls
* etcd3 lookup pass ansible sanity checks
introduce ansible integration tests for etcd3 lookup
* extract etcd3 setup from existing etcd3 module integration test
* fix etcd3 module/lookup integration tests
* fixes:
- fix port option in docstring
- raise connecttion error
- fix display format issues
- fix ETCDCTL_ENDPOINTS regex
adds:
- basic unit tests
* fix sanity issues
* changes:
- replace kwargs lookups with get_option()
- add 'entpoint' option for correct handling of ETCDCTL_ENDPOINTS env
- code simplification
* fix etcd3 lookup unit test:
replace LookupModule instanciation with lookup_loader
* fix sanity checks
* etcd3 changes:
- docstring documentation fixes/updates
- create etcd3 cnx object with a get_option() loop instead of copying 'private' class object
- set 'endpoints' option mutually exclusive with 'host' and 'port' (raises an AnsibleError exception)
* etcd3 changes:
- added ANSIBLE_METADATA,
- added default value for 'endpoints' option,
- removed defaults for options 'host' and 'port',
- fixed docstring links,
- added 'notes' and 'seealso' sections in doctring
- updated options code handling to reflect docstring's updates
* etcd3 changes:
- fix descriptions for endpoints, host, and port options
- update notes sections
- fix reference to etcd lookup plugin in seealso section
- fix return docstring
- remove useless logging
- obfuscates password in connection logging
* more pythonic lookup on dict keys
Co-Authored-By: Felix Fontein <felix@fontein.de>
* Update password obfuscation
Co-Authored-By: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
2020-04-25 10:58:06 +02:00
Felix Fontein
61cf2b74c4
Fix module._name comparisons to also consider FQCNs. ( #230 )
2020-04-24 18:55:31 +01:00
kenchrcum
81bf52047a
fix "TypeError: Object of type map is not JSON serializable" ( #223 )
...
Fix TypeError for manageiq_provider module.
2020-04-24 11:26:12 +05:30
Paul Fariello
546acdaac7
Add option to choose a specific make executable ( #212 )
...
* Add option to choose a specific make executable
* Add changelog fragment
* Fix pep8 issues
* Add ending dot to make option description
Co-Authored-By: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
2020-04-23 20:10:36 +01:00
Andrew Klychkov
cb535e9718
mysql_user: improve check_implicit_admin parameter's documentation ( #220 )
2020-04-23 15:40:32 +01:00
Andrew Klychkov
5874c89cf7
mysql_user: fix error No database selected ( #225 )
...
* mysql_user: fix error No database selected
* add changelog
2020-04-23 16:42:20 +03:00
Andrew Klychkov
bb459cb014
postgresql_user: add scram-sha-256 password support ( #100 )
...
* postgresql_user: add support for scram-sha-256 passwords
* postgresql_user: add support for scram-sha-256 passwords
* add changelog fragment
* fix
2020-04-22 12:45:14 +01:00
Andrew Klychkov
3b5520ebf7
mysql_db: add use_shell parameter to prevent Broken pipe errors ( #151 )
...
* mysql_db: prevent broken pipe errors by using an intermediate shell process
* use module.run_command()
* mysql_db: add use_shell parameter
* add changelog fragment
2020-04-20 18:46:54 +03:00
Simon Baird
281549cadc
jira: Fix incompatible pathname2url import ( #204 ) ( #205 )
...
The call to pathname2url was broken in Python 2. Fix it by importing
from module_utils.six instead of importing urllib and calling it
from there.
2020-04-20 14:05:57 +03:00
Marcelo Ricardo Leitner
dab16b8783
ip_netns: fix module name in example ( #207 )
...
* ip_netns: fix module name in example
Was referenced as 'namespace' while it should have been 'ip_netns'.
Closes : #203
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
* Update plugins/modules/net_tools/ip_netns.py
* Update plugins/modules/net_tools/ip_netns.py
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-04-20 09:40:35 +03:00
Andrew Klychkov
5b1652e8fa
postgresql_db: add trust_input parameter ( #184 )
2020-04-20 09:38:35 +03:00
Andrew Klychkov
764cae9f33
postgresql_privs: add trust_input parameter ( #177 )
...
* postgresql_privs: add trust_input parameter
* add changelog fragment
2020-04-20 09:01:42 +03:00
Felix Fontein
2eee9f78a6
Fix CI and jenkins_plugin module ( #202 )
...
* Don't import text_type and binary_type from ansible.module_utils._text, but from ansible.module_utils.six.
* Add changelog fragment.
2020-04-17 20:46:51 +02:00
Michal Middleton
0c0490298f
Slack: Add bot/user token support, correct thread_ts support ( #123 )
...
* Slack: Add bot/user token support, correct thread_ts support
Add support for user/bot/application tokens (and Slack WebAPI).
Fix input type for thread_id, which needs to be string.
Return thread_ts/thread_id when user/bot tokens are used, so they can be reused later
* Slack: Add changelog fragment, fix YAML syntax
Co-authored-by: Middleton, Michal <Michal.Middleton@concur.com>
2020-04-17 12:44:55 +01:00
eryx12o45
e3e6c6167e
Added ldap_search module for searching in LDAP servers ( #126 )
...
* fix CI
* Added ldap_search module for searching in LDAP servers
* Fixes from pipeline
* Fixed second script as well
* fix DOCUMENTATION block
* fix DOCUMENTATION block
* fix DOCUMENTATION block
* fix examples and remove changelog fragment
* Added integration tests for ldap_search
* fixes
Co-authored-by: Sebastian Pfahl <sebastian.pfahl@dcso.de>
2020-04-17 10:53:37 +02:00
Abhijeet Kasurde
2639d4c023
maven_artifact: Convert MD5 values to lowercase before comparison ( #197 )
...
Fixes : ansible-collections/community.general#186
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-04-17 11:54:34 +05:30