moved file around
This commit is contained in:
1 parent
bf94693d29
commit
659d653e90
13 files changed
+580
-1
No files matched your search
@@ -0,0 +1,23 @@
|
||||
---
|
||||
- name: Add ssh key
|
||||
hosts: all
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
- name: create id_rsa
|
||||
file:
|
||||
path: "~/.ssh/id_rsa.pub"
|
||||
state: touch
|
||||
- name: Install public keys
|
||||
ansible.posix.authorized_key:
|
||||
user: "{{ lookup('env', 'USER') }}"
|
||||
state: present
|
||||
key: "{{ lookup('file', '~/.ssh/id_ed25519.pub') }}"
|
||||
|
||||
- name: Change sudoers file
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/sudoers
|
||||
state: present
|
||||
regexp: '^%sudo'
|
||||
line: '%sudo ALL=(ALL) NOPASSWD: ALL'
|
||||
validate: /usr/sbin/visudo -cf %s
|
||||
Reference in new issue
Block a user