This commit is contained in:
2025-06-06 10:31:32 +02:00
parent 1b53d23b9b
commit f88822a742
35 changed files with 257 additions and 12063 deletions

View File

@ -3,16 +3,9 @@
# *** [ Ansible managed: DO NOT EDIT DIRECTLY ] ***
declare -i pc_nr=1
pc_nr_max=14
pc_nr_max=16
brcast_ip="192.168.82.255"
ab1="38:60:77:39:9e:9f"
#ab2="38:60:77:39:9a:a3"
ab3="00:22:15:aa:88:b9"
ab4="00:22:4d:b0:f3:d6"
ab5="80:ee:73:b9:8b:d3 80:ee:73:b9:8b:d4"
ab6="80:ee:73:c0:80:22"
ab7="80:ee:73:c5:2e:fb 80:ee:73:c5:2e:fc"
ab8="80:ee:73:d0:a5:71 80:ee:73:d0:a5:72"
ab9="80:ee:73:e0:0e:8a 80:ee:73:e0:0e:8b"
ab10="00:d8:61:c9:c8:3d"

View File

@ -5,13 +5,27 @@
# ---
# nis_users
#- name: (nis-user-systemfiles.yml) Check if local template directory exists for default users
# local_action: stat path={{ inventory_dir }}/files/{{ nis_domain}}/homedirs/{{ item.name }}
# with_items: "{{ nis_user }}"
# loop_control:
# label: '{{ item.name }}'
# register: local_template_dir_nis_user
- name: (nis-user-systemfiles.yml) Check if local template directory exists for default users
local_action: stat path={{ inventory_dir }}/files/homedirs/{{ item.name }}
delegate_to: localhost
stat:
path: "{{ inventory_dir }}/files/{{ nis_domain}}/homedirs/{{ item.name }}"
with_items: "{{ nis_user }}"
loop_control:
label: '{{ item.name }}'
register: local_template_dir_nis_user
#- name: Print variable local_template_dir_nis_user
# debug: var=local_template_dir_nis_user.results
#- meta: end_play
# --
# Copy .profile
@ -65,6 +79,7 @@
label: '{{ item.item.name }}'
when:
- item.stat.exists == false
- lookup('fileglob', inventory_dir + '/files/' + nis_domain + '/homedirs/DEFAULT/_profile.j2')
tags:
- profile