将密码设为常量

This commit is contained in:
bin456789
2024-05-22 21:56:11 +08:00
parent 7c96c4682f
commit a83cd16145
3 changed files with 16 additions and 7 deletions

View File

@ -10,10 +10,10 @@ chpasswd:
expire: false
# 20.04 arm 需要
list: |
root:123@@@
root:@PASSWORD@
users:
- name: root
password: 123@@@
password: "@PASSWORD@"
type: text
runcmd:
# opensuse tumbleweed 镜像有 /etc/ssh/sshd_config.d/ 文件夹,没有 /etc/ssh/sshd_config有/usr/etc/ssh/sshd_config