adjust realmd
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Torma Kristóf 2023-07-25 15:43:46 +02:00
parent a53b27a8fd
commit 22c43ec52b

View File

@ -43,7 +43,8 @@
- name: Join to AD with realmd
ansible.builtin.shell:
cmd: echo -e {{ join_passw }} | realm join -v -U Administrator intra.tormakris.dev
cmd: echo {{ join_passw }} | realm join -v -U Administrator intra.tormakris.dev
ignore_errors: True
- name: Enable pam homedir create on first logon
ansible.builtin.command:
@ -101,4 +102,22 @@
path: /etc/ssh/sshd_config
line: "%linuxadmins@intra.tormakris.dev ALL=(ALL) NOPASSWD: ALL"
when: checksudoers.found == 0
- name: Create home for tormakris
ansible.builtin.command:
cmd: mkhomedir_helper tormakris@intra.tormakris.dev
- name: Copy tormakris home
ansible.builtin.copy:
src: /home/tormakris
dest: /home/tormakris@intra.tormakris.dev
remote_src: yes
owner: tormakris@intra.tormakris.dev
group: domain users@intra.tormakris.dev
- name: "Update authorized_keys of tormakris"
ansible.posix.authorized_key:
user: tormakris@intra.tormakris.dev
state: present
key: https://static.tormakristof.eu/ssh.keys
...