From 730f327c71fabfd0848af154f7245c71aa062aab Mon Sep 17 00:00:00 2001 From: jlecour Date: Tue, 7 Nov 2017 10:33:18 +0100 Subject: [PATCH] module htpasswd --- HowtoAnsible.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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}