diff --git a/webmin.yml b/webmin.yml index 82ba7a4..50512af 100644 --- a/webmin.yml +++ b/webmin.yml @@ -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