FIX: netbios name fix

This commit is contained in:
xpk
2020-03-12 13:34:24 +08:00
parent fc9f7682bc
commit afd3155eea
+1 -1
View File
@@ -56,7 +56,7 @@
forwardable = true forwardable = true
- name: Join AD - name: Join AD
shell: echo '{{ ad_joinpw }}' | adcli join --verbose --domain={{ ad_domain|upper }} -U {{ ad_joinusr }} --computer-name={{ ad_netbios_name | default(inventory_hostname) }} --stdin-password 2>&1 | tee /var/log/adcli.log shell: echo '{{ ad_joinpw }}' | adcli join --verbose --domain={{ ad_domain|upper }} -U {{ ad_joinusr }} --computer-name={{ ad_netbios_name | default(inventory_hostname).split(".")[0] }} --stdin-password 2>&1 | tee /var/log/adcli.log
- name: Run authconfig - name: Run authconfig
shell: authconfig --enablesssd --enablesssdauth --enablemkhomedir --update shell: authconfig --enablesssd --enablesssdauth --enablemkhomedir --update