FIX: netbios name fix

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