|
|
@ -16,6 +16,10 @@ |
|
|
|
generate_ssh_key: yes # Generate an SSH key pair for the user |
|
|
|
generate_ssh_key: yes # Generate an SSH key pair for the user |
|
|
|
ssh_key_bits: 2048 |
|
|
|
ssh_key_bits: 2048 |
|
|
|
ssh_key_file: .ssh/id_rsa |
|
|
|
ssh_key_file: .ssh/id_rsa |
|
|
|
|
|
|
|
- name: Create sudoers file |
|
|
|
|
|
|
|
copy: |
|
|
|
|
|
|
|
dest: /etc/sudoers.d/ansible |
|
|
|
|
|
|
|
content: "" |
|
|
|
- name: Add sudoers entry |
|
|
|
- name: Add sudoers entry |
|
|
|
lineinfile: |
|
|
|
lineinfile: |
|
|
|
dest: /etc/sudoers.d/ansible |
|
|
|
dest: /etc/sudoers.d/ansible |
|
|
|