diff --git a/HowtoAnsible.md b/HowtoAnsible.md index 3009f6e7..a717aaa1 100644 --- a/HowtoAnsible.md +++ b/HowtoAnsible.md @@ -255,6 +255,16 @@ L'indication "filename" permet de référencer le dépôt dans `/etc/apt/sources Lorsqu'une réplication est en place, on peut choisir de ne pas propager l'action dans les binlogs, avec l'option `sql_log_bin: no`. +* module [htpasswd](http://docs.ansible.com/ansible/latest/mysql_variables_module.html) + +~~~{.yaml} +- mysql_variables: + variable: read_only + value: 1 +~~~ + +Cela permet d'exécuter une commande du type "SET GLOBAL read_only = 1;" de manière idempotente. + * module [htpasswd](http://docs.ansible.com/ansible/latest/htpasswd_module.html) ~~~{.yaml}