libreschool-nfs/root/etc/ansible/roles/nfs-client/tasks/domain_join.yml

11 lines
293 B
YAML

---
- name: Login to domain
shell: "echo -n \"{{lookup('file', '/var/lib/nethserver/secrets/administrator') }}\" | kinit administrator"
- name: Join to domain
shell: "net ads join -k"
# shell: "net ads join --no-dns-updates -k"
# --no-dns-updates is not present in 16.04