From 29fa302ce9cccdd5de95363049aac70115bc86bf Mon Sep 17 00:00:00 2001 From: axelll Date: Thu, 16 Aug 2018 20:52:08 +0300 Subject: [PATCH] Update proxysql_query_rules.py (#43877) +label: docsite_pr --- .../modules/database/proxysql/proxysql_query_rules.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/database/proxysql/proxysql_query_rules.py b/lib/ansible/modules/database/proxysql/proxysql_query_rules.py index 568e95a836b..01eb84cb465 100644 --- a/lib/ansible/modules/database/proxysql/proxysql_query_rules.py +++ b/lib/ansible/modules/database/proxysql/proxysql_query_rules.py @@ -148,10 +148,11 @@ EXAMPLES = ''' # single batch using the M(proxysql_manage_config) module). It uses supplied # credentials to connect to the proxysql admin interface. -- proxysql_backend_servers: +- proxysql_query_rules: login_user: admin login_password: admin username: 'guest_ro' + match_pattern: "^SELECT.*" destination_hostgroup: 1 active: 1 retries: 3 @@ -163,7 +164,7 @@ EXAMPLES = ''' # config to runtime. It uses credentials in a supplied config file to connect # to the proxysql admin interface. -- proxysql_backend_servers: +- proxysql_query_rules: config_file: '~/proxysql.cnf' username: 'guest_ro' state: absent