瀏覽代碼

don't fail when no groups are defined for user

master
父節點
當前提交
4c62ab3bc7
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      tasks/main.yml

+ 1
- 1
tasks/main.yml 查看文件

@@ -20,7 +20,7 @@
user:
name: "{{ item }}"
group: "{{ item }}"
groups: "{{ users[item].groups | join(',') }}"
groups: "{{ users[item].groups | default([]) | join(',') }}"
uid: "{{ users[item].uid }}"
home: "{{ users[item].home | default('/home/'+item) }}"
shell: "{{ users[item].shell | default('/bin/bash') }}"


Loading…
取消
儲存