name fix
This commit is contained in:
parent
7dd7966eec
commit
a2fc488f5f
@ -1,5 +1,5 @@
|
|||||||
- name: Webmin setup
|
- name: Webmin setup
|
||||||
hosts: tor-nas.dedyn.io
|
hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- name: Add webmin Apt signing key
|
- name: Add webmin Apt signing key
|
||||||
@ -83,7 +83,7 @@
|
|||||||
group: root
|
group: root
|
||||||
marker: "# {mark} ANSIBLE MANAGED BLOCK"
|
marker: "# {mark} ANSIBLE MANAGED BLOCK"
|
||||||
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
|
sed -i "s/^{{ ansible_facts['hostname'] }}adm/root/" /etc/webmin/miniserv.users
|
||||||
echo done >/etc/webmin/rootpwfromadm.sh.done
|
echo done >/etc/webmin/rootpwfromadm.sh.done
|
||||||
backup: yes
|
backup: yes
|
||||||
|
Loading…
Reference in New Issue
Block a user