您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。
|
- ---
-
- - name: root user password
- user:
- name: root
- password: "{{ root_password }}"
- when: root_password is defined
-
- - name: root user ssh key
- user:
- name: root
- generate_ssh_key: yes
- ssh_key_type: ed25519
- when: root_ssh_key
-
- - name: root user ssh directory
- file:
- path: /root/.ssh
- state: directory
- mode: 0700
- when: root_ssh_authorized_keys is defined
-
- - name: root user ssh authorized keys
- copy:
- content: "{{ root_ssh_authorized_keys | join('\n') }}"
- dest: /root/.ssh/authorized_keys
- when: root_ssh_authorized_keys is defined
|