From a6547d9b5637c76f8014fda29037525cc3515c8b Mon Sep 17 00:00:00 2001 From: sebalix Date: Thu, 19 Apr 2018 15:20:48 +0200 Subject: [PATCH] [IMP] Set '*' as the default password for the Odoo user (to respect convention) + New options 'odoo_user_update_password' and 'odoo_user_shell' (allowing to set /bin/false and thus disable authentication) --- defaults/main.yml | 4 +++- tasks/install.yml | 9 ++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 1bda2b9..6e9bcc8 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -4,7 +4,9 @@ odoo_install_type: standard # standard, buildout odoo_version: 11.0 odoo_service: odoo odoo_user: odoo -odoo_user_passwd: odoo +odoo_user_passwd: "*" # http://docs.ansible.com/ansible/latest/reference_appendices/faq.html#how-do-i-generate-crypted-passwords-for-the-user-module +odoo_user_update_password: always +odoo_user_shell: /bin/bash odoo_user_system: False odoo_init: True odoo_init_env: {} diff --git a/tasks/install.yml b/tasks/install.yml index 9776fa3..c97796f 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -10,9 +10,12 @@ - odoo_required_tools - name: Add Odoo system user - user: name={{ odoo_user }} shell=/bin/bash - password={{ odoo_user_passwd }} update_password=on_create - system={{ odoo_user_system }} + user: + name: "{{ odoo_user }}" + shell: "{{ odoo_user_shell }}" + password: "{{ odoo_user_passwd }}" + update_password: "{{ odoo_user_update_password }}" + system: "{{ odoo_user_system }}" tags: - odoo_user