From dd2e1e67a228655e8121c5d70b1fa8b6451760a3 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Mon, 24 Feb 2020 06:35:41 +0100 Subject: [PATCH] Feat: create_user var --- Choux.yml | 2 +- tasks/users.yml | 2 ++ vars/common.yml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Choux.yml b/Choux.yml index ce768d5..4d7236a 100644 --- a/Choux.yml +++ b/Choux.yml @@ -15,7 +15,7 @@ - include: tasks/pacman_cache_server.yml - include: tasks/arch_CLI_packages.yml - include: tasks/prompt.yml - # - include: tasks/users.yml + - include: tasks/users.yml - include: tasks/sudo.yml - include: tasks/ssh.yml - include: tasks/arch_programming.yml diff --git a/tasks/users.yml b/tasks/users.yml index e77732a..5e95c0e 100644 --- a/tasks/users.yml +++ b/tasks/users.yml @@ -14,6 +14,7 @@ shell: "{{ prompt_place['stdout'] }}" state: present with_items: "{{ deploy_users }}" + when: create_user - name: Add me user: @@ -24,3 +25,4 @@ shell: "{{ prompt_place['stdout'] }}" state: present with_items: "{{ me }}" + when: create_user diff --git a/vars/common.yml b/vars/common.yml index fc181d2..0ed9b2d 100644 --- a/vars/common.yml +++ b/vars/common.yml @@ -17,4 +17,5 @@ prompt: 'fish' minimal: false server: false +create_user: false