Move hard-coded numbers to variables.

This commit is contained in:
Andreas B. Mundt 2019-12-13 18:43:42 +01:00
parent 572dd5a3b0
commit 81337ac0db
8 changed files with 16 additions and 8 deletions

View file

@ -67,7 +67,7 @@
when: kadmin.stat.exists
- name: copy home from /etc/skel for dummy user foo
shell: cp -r /etc/skel {{ lan_homes }}/foo && chmod -R o-rwx {{ lan_homes }}/foo && chown -R 10000:10000 {{ lan_homes }}/foo
shell: cp -r /etc/skel {{ lan_homes }}/foo && chmod -R o-rwx {{ lan_homes }}/foo && chown -R {{ min_id }}:{{ min_id }} {{ lan_homes }}/foo
args:
creates: "{{ lan_homes }}/foo"
when: foo_pwd is defined and foo_pwd | length > 0