novnc.yml aktualisiert
This commit is contained in:
parent
2be28df2b5
commit
2c3ea93c9e
14
novnc.yml
14
novnc.yml
@ -76,16 +76,16 @@
|
||||
usersFile: "/etc/traefik/providers.local/novnc.usersfile"
|
||||
removeHeader: true
|
||||
|
||||
- name: /home/docker/traefik.{{inventory_hostname}}/novnc-genpw.sh (generate Random PW for noVNC basic-auth)
|
||||
- name: /home/docker/traefik/novnc-genpw.sh (generate Random PW for noVNC basic-auth)
|
||||
blockinfile:
|
||||
path: /home/docker/traefik.{{inventory_hostname}}/novnc-genpw.sh
|
||||
path: /home/docker/traefik/novnc-genpw.sh
|
||||
create: yes
|
||||
mode: 0550
|
||||
owner: root
|
||||
group: docker
|
||||
marker: "# {mark} ANSIBLE MANAGED BLOCK"
|
||||
block: |
|
||||
cd /home/docker/traefik.{{inventory_hostname}}
|
||||
cd /home/docker/traefik
|
||||
user=admin
|
||||
password=$(pwgen -s 32 1)
|
||||
|
||||
@ -104,17 +104,17 @@
|
||||
backup: yes
|
||||
validate: /bin/bash -n %s
|
||||
|
||||
- name: /home/docker/traefik.{{inventory_hostname}}/novnc-genpw.sh shebang
|
||||
- name: /home/docker/traefik/novnc-genpw.sh shebang
|
||||
lineinfile:
|
||||
path: /home/docker/traefik.{{inventory_hostname}}/novnc-genpw.sh
|
||||
path: /home/docker/traefik/novnc-genpw.sh
|
||||
insertbefore: BOF
|
||||
line: "#!/bin/bash -e"
|
||||
|
||||
- name: Gen initial password if not exists
|
||||
ansible.builtin.shell: ./novnc-genpw.sh
|
||||
args:
|
||||
chdir: /home/docker/traefik.{{inventory_hostname}}
|
||||
creates: /home/docker/traefik.{{inventory_hostname}}/providers/novnc.usersfile
|
||||
chdir: /home/docker/traefik
|
||||
creates: /home/docker/traefik/providers/novnc.usersfile
|
||||
|
||||
|
||||
handlers:
|
||||
|
Loading…
Reference in New Issue
Block a user