improve bootstrap
This commit is contained in:
parent
f138dc122e
commit
88d00fe24a
@ -1,2 +1,5 @@
|
||||
---
|
||||
# handlers file for ansible_bootstrap
|
||||
|
||||
- name: restart ssh
|
||||
service: name=sshd state=restarted
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
# tasks file for ansible_bootstrap
|
||||
|
||||
- name: "install python"
|
||||
raw: pacman -Sy python --noconfirm
|
||||
- name: "install python and archlinux-keyring"
|
||||
raw: pacman -Sy python archlinux-keyring --noconfirm
|
||||
|
||||
- name: sudoers install
|
||||
pacman:
|
||||
@ -57,3 +57,11 @@
|
||||
with_items:
|
||||
- id_rsa
|
||||
- authorized_keys
|
||||
|
||||
- name: Remove root SSH access
|
||||
lineinfile:
|
||||
dest: /etc/ssh/sshd_config
|
||||
regexp: "^PermitRootLogin"
|
||||
line: "PermitRootLogin no"
|
||||
state: present
|
||||
notify: restart ssh
|
Loading…
Reference in New Issue
Block a user