diff --git a/HowtoAnsible.md b/HowtoAnsible.md index 7df124ce..abfdd242 100644 --- a/HowtoAnsible.md +++ b/HowtoAnsible.md @@ -252,6 +252,20 @@ 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/htpasswd_module.html) + +~~~{.yaml} +- htpasswd: + path: /etc/nginx/htpasswd_phpmyadmin + name: janedoe + password: '9s36?;fyNp' + owner: root + group: www-data + mode: "0640" +~~~ + +Il nécessite la bibliothèque Python "passlib", installable sous Debian grace au paquet "python-passlib". + * Module [sysctl](http://docs.ansible.com/ansible/sysctl_module.html) : ~~~{.yaml}