New in version 2.3.
parameter | required | default | choices | comments |
---|---|---|---|---|
action | yes |
| The supplied action combines with the supplied direction to provide the semantics of how we want to move the config_settings between the config_layers. | |
config_file | no | Specify a config file from which login_user and login_password are to be read. | ||
config_layer | yes |
| RUNTIME - represents the in-memory data structures of ProxySQL used by the threads that are handling the requests. MEMORY - (sometimes also referred as main) represents the in-memory SQLite3 database. DISK - represents the on-disk SQLite3 database. CONFIG - is the classical config file. You can only LOAD FROM the config file. | |
config_settings | yes |
| The config_settings specifies which configuration we're writing. | |
direction | yes |
| FROM - denotes we're reading values FROM the supplied config_layer and writing to the next layer. TO - denotes we're reading from the previous layer and writing TO the supplied config_layer." | |
login_host | no | 127.0.0.1 | The host used to connect to ProxySQL admin interface. | |
login_password | no | None | The password used to authenticate to ProxySQL admin interface. | |
login_port | no | 6032 | The port used to connect to ProxySQL admin interface. | |
login_user | no | None | The username used to authenticate to ProxySQL admin interface. |
--- # This example saves the mysql users config from memory to disk. It uses # supplied credentials to connect to the proxysql admin interface. - proxysql_global_variables: login_user: 'admin' login_password: 'admin' action: "SAVE" config_settings: "MYSQL USERS" direction: "FROM" config_layer: "MEMORY" # This example loads the mysql query rules config from memory to to runtime. It # uses supplied credentials to connect to the proxysql admin interface. - proxysql_global_variables: config_file: '~/proxysql.cnf' action: "LOAD" config_settings: "MYSQL QUERY RULES" direction: "TO" config_layer: "RUNTIME"
Common return values are documented here Return Values, the following are the fields unique to this module:
name | description | returned | type | sample |
---|---|---|---|---|
stdout | Simply reports whether the action reported a change. | Currently the returned value with always be changed=True. | dict | {'changed': True} |
This module is flagged as stableinterface which means that the maintainers for this module guarantee that no backward incompatible interface changes will be made.
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.
© 2012–2017 Michael DeHaan
© 2017 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/proxysql_manage_config_module.html