Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding encoding to import function #61215

Closed
wants to merge 1,546 commits into from
Closed
Changes from 7 commits
Commits
Show all changes
1546 commits
Select commit Hold shift + click to select a range
98b6b98
Fixed few typo's: "Mutiple" to "Multiple" (#64543)
sbulage Nov 7, 2019
4078dcb
Zabbix: zabbix_template: fix https://github.com/ansible/ansible/issue…
sky-joker Nov 7, 2019
e5c1de2
postgresql_subscription: improve logic (#64561)
Andersson007 Nov 7, 2019
c4b8361
botmeta sanity: check migrated_to on non-existing file (#64551)
mkrizek Nov 7, 2019
45a5067
Bug fixes for GCP modules (#64486)
modular-magician Nov 7, 2019
f80653f
Bug fixes for GCP modules (#64485)
modular-magician Nov 7, 2019
7348185
Bug fixes for GCP modules (#64484)
modular-magician Nov 7, 2019
7564603
Switch from RHEL 8.0 & 8.1b to 8.1 in CI.
mattclay Nov 6, 2019
27d3dd5
Replace clear() method for backward compatibility. (#64504)
n0trax Nov 7, 2019
bbf3766
Disable failing aws_acm integration test.
mattclay Nov 7, 2019
26acb07
Added support for pagination to the github_deploy_key module(#36876)
bincyber Nov 8, 2019
2039bf4
postgresql_publication: fix typo in module.warn (#64582)
Andersson007 Nov 8, 2019
5e3fda5
postgresql_subscription: fix typo in module.warn method name (#64583)
Andersson007 Nov 8, 2019
21c8dae
Correct usage of API call in aws_config_aggregator (#64581)
Akasurde Nov 8, 2019
0cb19e6
zabbix_action shouldn't require args other than name when state=absent
D3DeFi Nov 8, 2019
4f7f57e
PR raised to add the feature of adding/removing IP from a Host record…
justjais Nov 8, 2019
84bffff
Fixed tiny typo in interpreter_discovery.rst (#64608)
knagamin Nov 8, 2019
4e77790
route53_info max_items and next_marker should be a str (#64617)
jillr Nov 8, 2019
6a662b0
clarify acceptable file types in collection docs (#64618)
samccann Nov 8, 2019
0b8b84c
Format azure_rm_keyvault_key_info module's document (#64580)
Fred-sun Nov 8, 2019
cc2e48a
Format azure_rm_snapshot document (#64579)
Fred-sun Nov 8, 2019
0573e51
Remove deprecated kubernetes and oc module "indirection" in v2.9 chan…
tima Nov 8, 2019
1e4230c
Format azure_rm_gallery* relate document (#64541)
Fred-sun Nov 8, 2019
beaf9c2
Update azure_rm_batchaccount's document (#64490)
Fred-sun Nov 8, 2019
6f19788
Update azure_rm_azurefirewall relate document (#64488)
Fred-sun Nov 8, 2019
74b0760
Add note about kerberos dependency versions (#64478)
jborean93 Nov 8, 2019
901eaf2
Add warning about winrm on MacoS (#64472)
jborean93 Nov 8, 2019
d9db2c3
minor typos and style changes (#64386)
al-x Nov 8, 2019
7a26aff
Fix cache example (#64600)
Glandos Nov 8, 2019
7ea1db8
Documents storage of task files (#62345)
ssbarnea Nov 8, 2019
6e19e34
one_vm: Fix creating VM also for template_id=0 (#63579)
xorel Nov 8, 2019
5d30180
VMware: Implement updates for dvPG in vmware_dvs_portgroup (#62537)
mariolenz Nov 9, 2019
4a995f2
Update aruba modules to handle prompt and syntax changes (#54261)
kakurpiel Nov 9, 2019
dd54150
docker_login: allow to function with credential helpers (#63158)
felixfontein Nov 9, 2019
574bd32
docker_swarm_service: Allow source to be omitted for tmpfs mounts (#6…
felixfontein Nov 9, 2019
2be04e2
nxos_overlay_global: Removing provider and correcting relative refere…
nkshrishail Nov 10, 2019
d5e30be
nxos_igmp_interface: fix regression test failure (#64286)
chrisvanheuveln Nov 10, 2019
964da2f
nxos_lacp_interfaces: Updating the tests to handle platforms that don…
nkshrishail Nov 10, 2019
00193f2
nxos_lacp: updated tests to handle platforms not supporting lacp syst…
nkshrishail Nov 10, 2019
8c1a42e
Remove kustodian from postgres and opennebula (#64647)
kustodian Nov 11, 2019
0d851dd
VMware: add new module vmware_guest_tools_info (#62860)
Tomorrow9 Nov 11, 2019
abf3319
Refine default 401 handling (#64619)
Qalthos Nov 11, 2019
a7ae0da
Sort test/sanity/ignore.txt (#64672)
sivel Nov 11, 2019
0f491c0
Replace TestCase.assertEquals with TestCase.assertEqual.
atombrella Nov 6, 2019
f145057
- add nextToken support (#64598)
rene1977 Nov 11, 2019
79e2273
New Module: gcp_serviceusage_service_info (#64589)
modular-magician Nov 11, 2019
b1849d1
New Module: gcp_serviceusage_service (#64588)
modular-magician Nov 11, 2019
ee50c3b
Bug fixes for GCP modules (#64587)
modular-magician Nov 11, 2019
4083d02
Buypass now has a ACME v2 production endpoint. (#64649)
felixfontein Nov 11, 2019
a5dc11c
Changed with_items -> loop (#62995)
ruzickap Nov 11, 2019
8b83f9c
archive module documentation is misleading (#62755)
chris-kiick-sp Nov 11, 2019
c1493e5
really clarify environment (#62531)
bcoca Nov 11, 2019
b93d92e
Set alter_sys=True instead of False to address backwards incompat (#6…
sivel Nov 11, 2019
9c5a1eb
Add Local Security Policy update example (#60897)
coryasilva Nov 12, 2019
8c4f59e
win_package - Set raw for argument type (#64690)
jborean93 Nov 12, 2019
8b13836
change $partition variable name to $ansible_partition (#63968)
kvprasoon Nov 12, 2019
ca42cb2
Make the DNS service optional when installing Active Directory (#63440)
philseeley Nov 12, 2019
c11d735
Fixes azure_rm_snapshot (#64542) (#64547)
haiyuazhang Nov 12, 2019
c033105
Add encoding and codepage params to win_command/win_shell (#54896) (#…
h-hirokawa Nov 12, 2019
4bf79de
Add output options for win_pester (#63583)
kvprasoon Nov 12, 2019
575116a
doc: Handle exception in parsing parameter description (#60933)
Akasurde Nov 12, 2019
47f9873
VMware: Handle slash in network name in vmware_guest module (#64494)
Akasurde Nov 12, 2019
94e98d5
remove toshio as release manager (boohoo) (#64685)
samccann Nov 12, 2019
9dc94b3
added missing atexit logout for zabbix_host module (#63785)
D3DeFi Nov 12, 2019
fed0496
Fix eos_facts over local eapi (#64570)
Qalthos Nov 12, 2019
68428ef
Remove temp directory created by wait_for_connection (#64592)
Akasurde Nov 12, 2019
47bf5de
command, script & shell: mention 'cmd' parameter (#62778)
pilou- Nov 12, 2019
fadf7a4
re-enable zabbix_host integration tests and add cleanup handlers
D3DeFi Oct 31, 2019
d2e1aee
win_domain_user: Make Identification of the user to work with more ro…
jiuka Nov 12, 2019
e74d397
setup.ps1 - parity with linux regarding missing local facts path (#58…
ShachafGoldstein Nov 12, 2019
e77426d
Corrected Get-adcomputer (#63093)
sergioirium Nov 12, 2019
95d613f
win_acl no longer needs SeSecurityPrivilege (#57804)
P-Hessler Nov 12, 2019
bd9a0b6
Improve handling of "restarted" state for win_iis_website module (#63…
artazar Nov 13, 2019
d0f8e88
vmware_tools handle connection issues (#57661)
Nov 13, 2019
743b6eb
Fortinet's new module for fortios_vpn_ipsec_phase2_interface (#64767)
chillancezen Nov 13, 2019
83927c3
Update openssl_certificate.py (#64772)
richlv Nov 13, 2019
143bafe
eos_lacp_interfaces : Fix to - lacp port-priority not set when… (#64530)
GomathiselviS Nov 13, 2019
d3b7828
[FIX] graceful is not an immutable attribute (#64397)
mjlshen Nov 13, 2019
93d1a57
vmware_guest: fix the name of the test VMs
goneri Nov 13, 2019
a7f90df
Document match/search tests (#64775)
jamescassell Nov 13, 2019
844b5d4
docs: fix gcs example to work with ansible 2+ (#64778)
verasativa Nov 13, 2019
a2047cf
update documentation example (#64786)
jamesv1994 Nov 13, 2019
bb72b8f
Syntax fix guide_gce.rst (#64779)
jpmahowald Nov 13, 2019
bf19060
ipaddr: add an option to return peer of a point-to-point link (#59144)
vincentbernat Nov 13, 2019
f8f7662
Add the ability to ignore files and collection build (#64688)
jborean93 Nov 13, 2019
b5f484d
ec2_eip Don't throw an exception when re-releasing an EIP (idempotenc…
tremble Nov 13, 2019
80bf24b
vmware_guest_disk/test: use less disk space
goneri Nov 13, 2019
907c66c
Resolved merge conflicts
anusha94 Oct 17, 2019
4e7c0b3
Fixed review comments
anusha94 Oct 17, 2019
3a9650d
Merging conflicts and updating PR
anusha94 Oct 29, 2019
23a7513
allow using --check on win_iis_webapppool module (#50528)
tchia04 Nov 13, 2019
91d0ad9
Update win_firewall_rule.py to include ICMP echo (ping) example (#55…
dlitster Nov 14, 2019
f6ac436
win_firewall_rule - support ICMP types and codes (#60361)
ShachafGoldstein Nov 14, 2019
04b8f75
win_domain_computer module: Fix idempotence when name != sam_accoun…
Daniel-Sanchez-Fabregas Nov 14, 2019
46a6c28
use ~/.one/one_auth as default of ONE_AUTH file location (#64535)
YouhuaLi Nov 14, 2019
e0373a7
VMware: Simplifying get_vm() in module_utils.vmware (#62217)
jtyr Nov 14, 2019
a75a79b
hostname - Add Manjaro Linux distribution (#64810)
aisbergg Nov 14, 2019
9ee6012
Fix postgres_user not commiting changes when groups is set (#64807)
Cohedrin Nov 14, 2019
eac7fa1
gitlab_user: Remove optional parameters while state is absent (#64832)
Akasurde Nov 14, 2019
f17a55a
Add advice how to prevent jinja2 warning (#60594)
robertdebock Nov 14, 2019
5c0b2c1
Fix ansible_failed_{task,result} undefined in rescue (#64831)
mkrizek Nov 14, 2019
fbdd295
Adjust conditional for disabling alert email (#63951)
t-reppert Nov 14, 2019
d6a5180
Fix kinesis_stream wait loop pause. (#64283)
jasonpepper Nov 14, 2019
67fd17b
Update RDS snapshot info to use DBClusterIdentifier (#64253)
Nov 14, 2019
81b334b
Close subprocess stdout and stderr in the ssh connection plugin
JulienPalard Nov 14, 2019
9b0cdad
Add a random component to state machine name in aws_step_functions_st…
prasadkatti Nov 14, 2019
e9feea2
VMware: new module vmware_guest_serial_port (#63126)
anusha94 Nov 14, 2019
db3994c
Default to python3 on Debian 10 (#63097)
johnbui423 Nov 14, 2019
551b17b
ec2_vpc_net_info: integration tests (#62649)
tremble Nov 14, 2019
a6f4571
Add default value to 0 for disk in nova_flavor module (#64749)
faridda Nov 14, 2019
161e0be
Fix access variable name programmatically faq docs (#64041)
srivignessh Nov 14, 2019
0aa59ce
vmware/test: use better name for datastores
goneri Nov 13, 2019
4f51b7d
Remove ansible-test --tox delegation option.
mattclay Sep 26, 2019
bf8fe22
Modified setup.ps1 in order to show Windows Installation type (#41002)
Gianlu Nov 15, 2019
cd39e6e
win_domain_user: add retry logic for null user principal group (#54334)
Daniel-Sanchez-Fabregas Nov 15, 2019
521d646
win_chocolatey: Fix error when choco.exe not found (#53115)
dagwieers Nov 15, 2019
762fcf7
win_pester - Align dir scanning with Pester's defaults (#64880)
jborean93 Nov 15, 2019
40071e5
win_disk_facts: Adds Win32_DiskDrive object to facts (#51595)
wilmardo Nov 15, 2019
8ff6e4c
win_iis_webapplication: add authentication parameters (#56033)
mhunsber Nov 15, 2019
01e4e1b
postgres.py: add query_params (#64661)
Andersson007 Nov 15, 2019
864a597
Improved message for unarchive. (#64594)
sbulage Nov 15, 2019
069c795
Add timeout to jenkins_script csrf requests (#62850)
demizer Nov 15, 2019
96fc1a1
Add support for multiple manager attributes configuration (#60201)
anupamaloke Nov 15, 2019
f45fdc7
postgresql_subscription: fix the module can return incorect changed v…
Andersson007 Nov 15, 2019
64595a7
module_defaults: add tree missing vmware modules (#64877)
goneri Nov 15, 2019
a01376a
update configuring ansible-galaxy client (#64796)
samccann Nov 15, 2019
79a38c8
Fix firewalld integration tests for CentOS 8 (#64873)
samdoran Nov 15, 2019
f8c7418
Fix setup_postgresql integration test for CestOS 8 (#64871)
samdoran Nov 15, 2019
73a2ee7
Fix mysql_replication integration test for CentOS 8 (#64870)
samdoran Nov 15, 2019
41f301f
Fix setup_mysql8 tests for CentOS 8 (#64868)
samdoran Nov 15, 2019
082b1b6
Fix filesystem integration test for CentOS 8 (#64866)
samdoran Nov 15, 2019
16f070f
Fix mariadb_replication tests for CentOS 8 (#64865)
samdoran Nov 15, 2019
477fa63
Fix setup_mysql_db for CentOS 8 (#64864)
samdoran Nov 15, 2019
05a7ce7
Fix yum_repository tests for CentOS 8 (#64863)
samdoran Nov 15, 2019
3902c6d
Fix MariaDB integration tests for CentOS 8 (#64859)
samdoran Nov 15, 2019
5e3b6c8
Fix group integration test for CentOS 8 (#64858)
samdoran Nov 15, 2019
5d2a3ec
Fix setup_rpm integration tests for CentOS 8 (#64862)
samdoran Nov 15, 2019
dd8a3eb
Fix paramiko_ssh test (#64857)
samdoran Nov 15, 2019
f2e605c
Fix iso_extract tests for CentOS 8 (#64861)
samdoran Nov 15, 2019
4291f09
Fix lookup_passwordstore integration test for CentOS 8 (#64869)
samdoran Nov 15, 2019
6dff4f4
Revert "Doc notes 4 (#64349)" (#64922)
yuandongx Nov 16, 2019
9a8d0cf
Revert "Doc notes 5 (#64350)" (#64921)
yuandongx Nov 16, 2019
8301ad4
VMware: new module vmware_host_auto_start (#64605)
sky-joker Nov 16, 2019
cf4882e
Fix argument name in example of documentation (#64891)
mossroy Nov 16, 2019
2ccdf29
Doc notes 4 (#64927)
yuandongx Nov 16, 2019
8ea9d0c
Doc notes 5 (#64928)
yuandongx Nov 16, 2019
889953a
add notes for 4 ce moudules docs. (#64929)
yuandongx Nov 16, 2019
034df49
VMware: New module vmware_host_dns (#64458)
mariolenz Nov 16, 2019
4552771
Add module ldap_attrs; deprecate ldap_attr (#62701)
drybjed Nov 16, 2019
b04940d
VMware: Re-introduce backing_disk_mode in vmware_guest_disk_in… (#63244)
Akasurde Nov 16, 2019
a385ad3
Use newer version of podman on RHEL (#64934)
samdoran Nov 17, 2019
480b106
become - stop using play context in more places (#62373)
jborean93 Nov 17, 2019
0efe5a6
Add full IPv6 support to win_dns_client - Fixes #55962 (#57577)
Nov 17, 2019
096c3ff
Correct win_dns_client test option name (#64967)
jborean93 Nov 17, 2019
a3c0277
Move grafana modules to own subdir (#64657)
rrey Nov 18, 2019
13a8dbf
Fix Grafana lookup auth header for py2/3 compatibility (#50816)
markchalloner Nov 18, 2019
c9d3c9e
hcloud: inventory: missing compose variables (#64559)
mwl Nov 18, 2019
a815fdf
Update Route53 IAM policy so the Route53 tests run (#64886)
tremble Nov 18, 2019
1df62f1
Collections versions (#64912)
acozine Nov 18, 2019
fcd2940
Fix postgresql_lang integration test for CentOS 8 (#64872)
samdoran Nov 18, 2019
14897a3
Fix typo in grafana_datasource docs (#65000)
rzerda Nov 18, 2019
f198036
Remove duplicated and broken link to Roles (#64991)
bmillemathias-1a Nov 18, 2019
1d0a832
Fix link to Roles (#64992)
bmillemathias-1a Nov 18, 2019
1e59017
renamed module tls client auth params to avoid overlaping with fetch_…
Nov 18, 2019
2749090
fix collection broken links (#65010)
samccann Nov 18, 2019
d5fd588
distribution: ignore plesk-release file while parsing (#64665)
Akasurde Nov 18, 2019
163904f
Fix timezone integration test for Fedora 31 (#65013)
samdoran Nov 18, 2019
6b2b876
Make Docker and Podman play nice (#65009)
samdoran Nov 18, 2019
7d4800d
Feature: iam_role tags (#63944)
tremble Nov 18, 2019
a4b36b2
Update cache plugin documentation (#63635)
s-hertel Nov 18, 2019
8a5adcd
Improve examples on parameters use with argv (#60781)
toadjaune Nov 18, 2019
f1bf15b
cloudformation_info Move sample outputs from EXAMPLES to RETURN secti…
prasadkatti Nov 18, 2019
067e96b
VMware: Fix wait for customization timeout issue (#64493)
Tomorrow9 Nov 19, 2019
3252665
nxos_vlans: fix rmb behaviors and tests (#63650)
chrisvanheuveln Nov 19, 2019
bc479fc
Fix py2/py3 compability issue for httpapi plugin fortios (#64982)
chillancezen Nov 19, 2019
4e6fa59
gitlab modules: unify authentication method (#64989)
Lunik Nov 19, 2019
9ef2667
Add missing version_added in checkpoint documentation (#65048)
Akasurde Nov 19, 2019
a6bc43b
vmware_guest: Revert custom value customization in guest (#65031)
Akasurde Nov 19, 2019
09aebf3
Add doc to ce for user guide. (#63982)
yuandongx Nov 19, 2019
b6f0f14
Document diff. (#64888)
felixfontein Nov 19, 2019
1588ad7
Update ansible.cfg (#64855)
samdoran Nov 19, 2019
7dac932
Fixes error in regex example (#65047)
Bjoern2 Nov 19, 2019
9e92668
Amazon modules - Yet more minor documentation cleanup (#64930)
tremble Nov 19, 2019
3f3d1d8
Fix text in import_role module description (#65066)
urrameu Nov 19, 2019
ba273c7
Fix ansible-test handling of git submodules. (#65027)
mattclay Nov 19, 2019
e65be0b
Put all files and Path filters under a specific section (#64913)
bmillemathias-1a Nov 19, 2019
765b054
fix net_system domain_search examples (#65080)
samccann Nov 19, 2019
f5133be
Fix up broken Windows test when run with coverage (#65085)
jborean93 Nov 19, 2019
96a422a
win_firewall- Change req check from wmf version to cmdlets presence (…
ShachafGoldstein Nov 20, 2019
200fb00
Windows coverage - output temp files with UTF-8 BOM (#65086)
jborean93 Nov 20, 2019
7092c19
config manager str type vault source (#65023)
jborean93 Nov 20, 2019
4270df1
Fix typo in docs for lvol module(#65092)
FreedomBen Nov 20, 2019
bc92170
fix module that it reports the correct status of a change (#65061)
tcraxs Nov 20, 2019
b1e6667
fix all modules to be able to get parameter with value false (very im…
chkp-orso Nov 20, 2019
35cc26f
VMware: Find unique tag using category id (#61082)
Akasurde Nov 20, 2019
38d6421
Handle gfid tag when producing ansible facts in gluster_heal_info (#6…
rchikatw Nov 20, 2019
502fc20
Add support for jumphost setting in junos_scp and junos_package (#64086)
ganeshrn Nov 20, 2019
2cf079b
Meraki - Remove integration tests which work with HTTP respons… (#64975)
kbreit Nov 20, 2019
cc5132a
add a new module to configure isis on isis-view. (#63720)
yuandongx Nov 20, 2019
509b989
postgresql_lang: use query parameters with cursor.execute() (#65093)
Andersson007 Nov 20, 2019
b36f572
openssh_keypair: fix idempotence issue (#65017)
felixfontein Nov 20, 2019
f51f87a
DeleteUser: do not disable user if already disabled (#64797)
billdodd Nov 20, 2019
a7716ae
add new command SetManagerNic in redfish_config module (#64477)
panyy3 Nov 20, 2019
60d49c4
Zabbix: new module zabbix_template_info (#64027)
sky-joker Nov 20, 2019
5bd06ee
rabbitmq_publish SSL certificate implementation (#62036)
Im0 Nov 20, 2019
e16e6fa
Fixes #28325: Add ansible_ssh_host_key_<algorithm>_public_subtype fac…
nrwahl2 Nov 20, 2019
da8ec32
Update plugins/netconf/ce.py to fix a bug(failed to get veriosn info…
yuandongx Nov 20, 2019
6a763d7
Remove uneeded Python version compatibility checks. (#64076)
atombrella Nov 20, 2019
426e37e
postgresql_privs - fix sort comparison (#65125)
samdoran Nov 20, 2019
f1311d3
Rewrite iam_policy using boto3 (#63924)
tremble Nov 20, 2019
ede62b8
Update influxdb_write.py (#65117)
nillvitor Nov 21, 2019
1a7823a
Added missing logout to zabbix_user_info module (#65146)
D3DeFi Nov 21, 2019
c6301a9
fix utils.color.stringc: enclosure non printable sequences in SOH,STX…
gvsheva Nov 21, 2019
c08f536
Add support for all_projects in OpenStack inventory module (#55965)
Miouge1 Nov 21, 2019
d1c58bc
#59522: adjust messages (#65129)
felixfontein Nov 21, 2019
d52af75
Add aws elb multiple host header support (#65021)
mjmayer Nov 21, 2019
b0c8e79
link from quickstart page to Network Getting Started (#65150)
acozine Nov 21, 2019
f3575c5
docs: add solution to timeout errors to docs (#65140)
heuels Nov 21, 2019
784e507
module sanity checks: improve alias handling (#59060)
felixfontein Nov 21, 2019
6e652ae
Improve consistency of IAM_{role,user,group} behaviour (#64258)
tremble Nov 21, 2019
95bd92d
Add integration tests for aws lightsail (#63770)
prasadkatti Nov 21, 2019
41b199a
Fortinet's new module for fortios_system_global (#64817)
chillancezen Nov 22, 2019
dc59880
vmware_deploy_ovf: Use correct datastore in multi-datacenter environment
davedow15 Nov 22, 2019
d7039b6
VMware: Fix typo in fail_json in vmware_guest_powerstate (#65162)
Akasurde Nov 22, 2019
3dc113f
Update notes in vmware_guest about SysPrep Windows Guest (#65055)
nmandy-git Nov 22, 2019
62c4ff8
Fix legacy facts keys having redundant underscore (#65167)
NilashishC Nov 22, 2019
d05d5cf
VMware: add new module vmware_guest_controller (#59615)
Tomorrow9 Nov 22, 2019
315cc2f
VMware: vcenter_folder checks nested parent folder path (#62741)
meerkampdvv Nov 22, 2019
d3f6943
Remove postgresql_shared integration test (#65133)
samdoran Nov 22, 2019
cba9abc
elbv2 - print() statement results an task failure, even if the task i…
markuman Nov 22, 2019
0ab21fd
add note re required forward slash on url (#65203)
cbudz Nov 22, 2019
d4c4c92
Fix issue 64503. Added pool to relocate spec (#64544)
pgbidkar Nov 22, 2019
c73288a
user - compare macOS user properties using same type (#62973)
kryptonite303 Nov 22, 2019
239213b
vmware_guest: do not use autoselect_datastore in test (#65191)
goneri Nov 23, 2019
eb3da65
vmware_rest_client: pass object to get_tags_for_dynamic_obj (#65156)
goneri Nov 23, 2019
136dc27
[yarn] Set name_version when version is not specified (#62348)
rohit-gohri Nov 23, 2019
a096cd0
docker_swarm_service: Sort lists when checking for changes (#63887)
mcassaniti Nov 23, 2019
ebdb581
Fix typos in `ansible.cfg` comments
akamch Nov 23, 2019
d3b4db0
Adding encoding to import function
netmonk Aug 23, 2019
64c2baf
mysql_db.py fix
netmonk Aug 23, 2019
8a08139
mysql_db.py fix lint
netmonk Aug 23, 2019
a031267
[DOC] mysqldb_py
netmonk Sep 4, 2019
a0e1692
mysqldb_py fixing lint issue
netmonk Sep 4, 2019
ed64cfb
Update lib/ansible/modules/database/mysql/mysql_db.py
netmonk Sep 4, 2019
0d9ef94
fixing documentation
netmonk Sep 4, 2019
eb930d9
Merge branch 'devel' of https://github.com/netmonk/ansible into devel
Nov 23, 2019
9e4b5b3
fixing merge with upstream devel
Nov 23, 2019
e942083
evolving test
Nov 23, 2019
7f0428a
fixed append arugment for command in lib, and wrote success test for …
Nov 24, 2019
62c107c
Adding test for import, and updating related documentation for import…
netmonk Nov 24, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions lib/ansible/modules/database/mysql/mysql_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
- Collation mode (sorting). This only applies to new table/databases and does not update existing ones, this is a limitation of MySQL.
encoding:
description:
- Encoding mode to use, examples include C(utf8) or C(latin1_swedish_ci)
- Encoding mode to use, examples include C(utf8) or C(latin1_swedish_ci), at creation of database or importation of sql script
target:
description:
- Location, on the remote host, of the dump file to read from or write to. Uncompressed SQL
Expand Down Expand Up @@ -117,10 +117,12 @@
name: all
target: /tmp/dump.sql

- name: Import file.sql similar to mysql -u <username> -p <password> < hostname.sql
# Import of sql script with encoding option
- name: Import dump.sql with specific latin1 encoding, similar to mysql -u <username> --default-character-set=latin1 -p <password> < dump.sql
mysql_db:
state: import
name: all
encoding: latin1
target: /tmp/dump.sql

- name: Delete database with name 'bobdata'
Expand Down Expand Up @@ -231,7 +233,8 @@ def db_dump(module, host, user, password, db_name, target, all_databases, port,
return rc, stdout, stderr


def db_import(module, host, user, password, db_name, target, all_databases, port, config_file, socket=None, ssl_cert=None, ssl_key=None, ssl_ca=None):
def db_import(module, host, user, password, db_name, target, all_databases, port, config_file,
socket=None, ssl_cert=None, ssl_key=None, ssl_ca=None, encoding=None):
if not os.path.exists(target):
return module.fail_json(msg="target %s does not exist on the host" % target)

Expand All @@ -254,6 +257,8 @@ def db_import(module, host, user, password, db_name, target, all_databases, port
else:
cmd.append("--host=%s" % shlex_quote(host))
cmd.append("--port=%i" % port)
if (encoding is not None) and (encoding != ""):
cmd.append("--default-character-set=%s" % shlex_quote(encoding))
if not all_databases:
cmd.append("-D")
cmd.append(shlex_quote(''.join(db_name)))
Expand Down Expand Up @@ -441,7 +446,7 @@ def main():
login_password, db, target,
all_databases,
login_port, config_file,
socket, ssl_cert, ssl_key, ssl_ca)
socket, ssl_cert, ssl_key, ssl_ca, encoding)
if rc != 0:
module.fail_json(msg="%s" % stderr)
module.exit_json(changed=True, db=db_name, db_list=db, msg=stdout)
Expand Down