Adapt base role to current needs
* Temporary disable logrotate and fail2ban, I have different setup now To be changed when traefik role is added * Add ssh public key * Adapt packages according to current needs
This commit is contained in:
parent
f4d3f791bf
commit
25e61b0b66
5 changed files with 5 additions and 10 deletions
1
ansible/roles/base/files/ssh-keys/mouse.pub
Normal file
1
ansible/roles/base/files/ssh-keys/mouse.pub
Normal file
|
|
@ -0,0 +1 @@
|
|||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCxVkfuW/eiTR0cNw5h/SSYdqrPBVfwpvedVwTi4qV+TuoizvLqRK+VDAJyBENeeiMOK5LLHhWDFJXOZtznjTNRPLeWvH7zYq1djriYZc+F8XUG/v++uihtQHs5h6xwMZZnxGK7EpIm2DjuhSIwS+jW8uJaAt4ovrZWd1QXEUVulfOx+O7qdITifffssE7yRRCMOHilIGujm5MOCBzjX2E3yx7UDgHx4WCAKRaN4YBP+qMoJ96H0ZKc+jnXhFQcHInA2zXaslRiGtlbz0Hj5EWLEc2LchT4hgs+2zORyPSO+LMrkQfoJGvUI1KvwQ8/6mok8fBfZE8rN/sCQtxxbNpFk/+tmht4tZ5M3TCZ5jcKeNzUDWdcxD4w+TIi9yRRKGTjk0GsEM+SlQw3zcEfPk1KpDnug/WjsFUdpno1c2Zw+J7KglwaAaIsje9FwUhgLQrYzNE5pfD0xepYCl5cU2Llb/yl65NYR3YhZI3ByE9RqzdQIHU/gnz/yWMnCsNI8zE= marto@cappuccino
|
||||
|
|
@ -6,9 +6,3 @@
|
|||
|
||||
- name: SSH
|
||||
include: ssh.yml
|
||||
|
||||
- name: fail2ban
|
||||
include: fail2ban.yml
|
||||
|
||||
- name: logrotate
|
||||
include: logrotate.yml
|
||||
|
|
|
|||
|
|
@ -11,3 +11,4 @@
|
|||
- sudo
|
||||
- vim
|
||||
- git
|
||||
- ca-certificates
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
- name: Define context
|
||||
set_fact:
|
||||
user: jake
|
||||
user: marto
|
||||
enable_root: false
|
||||
|
||||
- name: SSH config
|
||||
|
|
@ -31,8 +31,7 @@
|
|||
state: present
|
||||
key: "{{ lookup('file', item) }}"
|
||||
loop:
|
||||
- ssh-keys/ps.pub
|
||||
- ssh-keys/mobile.pub
|
||||
- ssh-keys/mouse.pub
|
||||
|
||||
- name: Enable SSH
|
||||
service:
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
ssh_port: 7743
|
||||
ssh_port: 22
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue