Update 'create_deployment_user.yml'
This commit is contained in:
@@ -16,3 +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: Add sudoers entry
|
||||||
|
lineinfile:
|
||||||
|
dest: /etc/sudoers.d/ansible
|
||||||
|
state: present
|
||||||
|
regexp: '^ansible'
|
||||||
|
line: 'ansible ALL=(ALL) NOPASSWD: ALL'
|
||||||
|
validate: 'visudo -cf %s'
|
||||||
|
|||||||
Reference in New Issue
Block a user