25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
- ---
-
- - 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
- - not root_target_directory is defined
-
- - name: root user ssh directory
- file:
- path: "{{ root_target_directory | default('') }}/root/.ssh"
- state: directory
- when: root_ssh_authorized_keys is defined
-
- - name: root user ssh authorized keys
- template:
- src: root_user_ssh_authorized_keys.j2
- dest: "{{ root_target_directory | default('') }}/root/.ssh/authorized_keys"
- when: root_ssh_authorized_keys is defined
|