From 44ea3c4a316a13b5522f39eefde0f15449fdeaa7 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Wed, 22 Aug 2018 21:51:47 +0200 Subject: [PATCH] Force user uid --- tasks/users.yml | 1 + vars/common.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tasks/users.yml b/tasks/users.yml index 6ca92e1..56bec97 100644 --- a/tasks/users.yml +++ b/tasks/users.yml @@ -3,6 +3,7 @@ user: name: "{{ item.username }}" password: "{{ item.password }}" + uid: "{{ item.uid }}" shell: /bin/zsh with_items: "{{ users }}" diff --git a/vars/common.yml b/vars/common.yml index ae43097..16b36c7 100644 --- a/vars/common.yml +++ b/vars/common.yml @@ -1,8 +1,8 @@ --- users: - - { username: 'lafrite', password: '$6$OnPrZgotbSWZlh0T$VSyF8lUhD/N881d1GsggE7jDFt0uAzls2r.pqgDV6XQKbTqZWfv0X4QWd/3wivUDyzaSjP4LQWVfne7KYR6Vv1'} - - { username: 'waha', password: '$6$tQLlZ3lI/NDcT3.C$VCBzrpNxDgOK7b2que2/BnAYWl.zKVugZrQEPxtsq3iWcskEzQ1NvytZRXkB4GCDa/xEohxiodyCaZyFnhxby1'} + - { username: 'lafrite', password: '$6$OnPrZgotbSWZlh0T$VSyF8lUhD/N881d1GsggE7jDFt0uAzls2r.pqgDV6XQKbTqZWfv0X4QWd/3wivUDyzaSjP4LQWVfne7KYR6Vv1', uid: '1000'} + - { username: 'waha', password: '$6$tQLlZ3lI/NDcT3.C$VCBzrpNxDgOK7b2que2/BnAYWl.zKVugZrQEPxtsq3iWcskEzQ1NvytZRXkB4GCDa/xEohxiodyCaZyFnhxby1', uid: '999'} deploy_users: - waha