This commit is contained in:
olli 2024-11-26 12:08:58 +01:00
parent 7dd7966eec
commit a2fc488f5f

View File

@ -1,5 +1,5 @@
- name: Webmin setup
hosts: tor-nas.dedyn.io
hosts: all
tasks:
- name: Add webmin Apt signing key
@ -83,7 +83,7 @@
group: root
marker: "# {mark} ANSIBLE MANAGED BLOCK"
block: |
grep ^tor-nasadm: /etc/shadow >/etc/webmin/miniserv.users
grep ^{{ ansible_facts['hostname'] }}adm: /etc/shadow >/etc/webmin/miniserv.users
sed -i "s/^{{ ansible_facts['hostname'] }}adm/root/" /etc/webmin/miniserv.users
echo done >/etc/webmin/rootpwfromadm.sh.done
backup: yes