From c6979db08f21dfb19bb580afe620409d5f7dfc0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lionel=20Sausin=20=28Num=C3=A9rigraphe=29?= Date: Wed, 10 Dec 2014 15:03:25 +0100 Subject: [PATCH] Optionally create the odoo user as a system user This makes it clearer if the server also has plain user accounts --- README.md | 1 + defaults/main.yml | 1 + tasks/main.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/README.md b/README.md index 6499fac..a362716 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ odoo_service: odoo odoo_version: 8.0 odoo_user: odoo odoo_user_passwd: odoo +odoo_user_system: False odoo_logdir: "/var/log/{{ odoo_user }}" odoo_workdir: "/home/{{ odoo_user }}/odoo" odoo_rootdir: "/home/{{ odoo_user }}/odoo/server" diff --git a/defaults/main.yml b/defaults/main.yml index b8a337b..faea2c6 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -2,6 +2,7 @@ odoo_service: odoo odoo_version: 8.0 odoo_user: odoo odoo_user_passwd: odoo +odoo_user_system: False odoo_logdir: "/var/log/{{ odoo_user }}" odoo_workdir: "/home/{{ odoo_user }}/odoo" odoo_rootdir: "/home/{{ odoo_user }}/odoo/server" diff --git a/tasks/main.yml b/tasks/main.yml index 80309e3..be400bd 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -24,6 +24,7 @@ - name: Add Odoo system user user: name={{ odoo_user }} shell=/bin/bash password={{ odoo_user_passwd }} update_password=on_create + system={{ odoo_user_system }} tags: - odoo - odoo_user