update and create new tasks
This commit is contained in:
parent
9591a55292
commit
c47a74749b
|
@ -52,7 +52,6 @@
|
|||
- aptitude
|
||||
- nslcd
|
||||
- exim4
|
||||
- fail2ban
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
@ -213,7 +212,7 @@
|
|||
path: /etc/sudoers.d/vn
|
||||
state: touch
|
||||
mode: u=rw,g=r,o=r
|
||||
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
# paso2 - add a line to /etc/sudoers.d/vn file
|
||||
- name: add a line to /etc/sudoers.d/vn file
|
||||
lineinfile:
|
||||
|
@ -222,6 +221,7 @@
|
|||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
# Secure GRUB edition with password
|
||||
# paso1 - Proteger grub
|
||||
- name: GRUB password boot protection
|
||||
blockinfile:
|
||||
|
@ -235,29 +235,4 @@
|
|||
- name: update grub config
|
||||
command: update-grub
|
||||
when: grub_register.changed
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
# paso1 - Install guest-side qemu-system agent
|
||||
- name: Install guest-side qemu-system agent
|
||||
apt:
|
||||
name: qemu-guest-agent
|
||||
state: present
|
||||
tags: install-qemu-guest
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
# descargar http://apt.verdnatura.es/pool/main/v/vn-host/vn-host_2.0.2_all.deb e instalar (manualmente wget + dpkg -i package)
|
||||
# paso0 - añadir clave gpg
|
||||
# paso1 - Add specified repository into sources list
|
||||
#- name: Add specified repository into sources list
|
||||
# apt_repository:
|
||||
# repo: deb http://apt.verdnatura.es/ bookworm main
|
||||
# state: present
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
# paso2 - Add source repository into sources list
|
||||
#- name: Add source repository into sources list
|
||||
# apt_repository:
|
||||
# repo: deb-src http://apt.verdnatura.es/ bookworm main
|
||||
# state: present
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
@ -0,0 +1,15 @@
|
|||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
# descargar http://apt.verdnatura.es/pool/main/v/vn-host/vn-host_2.0.2_all.deb e instalar (manualmente wget + dpkg -i package)
|
||||
# paso0 - añadir clave gpg
|
||||
# paso1 - Add specified repository into sources list
|
||||
#- name: Add specified repository into sources list
|
||||
# apt_repository:
|
||||
# repo: deb http://apt.verdnatura.es/ bookworm main
|
||||
# state: present
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
# paso2 - Add source repository into sources list
|
||||
#- name: Add source repository into sources list
|
||||
# apt_repository:
|
||||
# repo: deb-src http://apt.verdnatura.es/ bookworm main
|
||||
# state: present
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
@ -0,0 +1,8 @@
|
|||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
# paso1 - Install guest-side qemu-system agent
|
||||
- name: Install guest-side qemu-system agent
|
||||
apt:
|
||||
name: qemu-guest-agent
|
||||
state: present
|
||||
tags: install-qemu-guest
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
@ -1,3 +1,11 @@
|
|||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
# Install and configure FAIL2BAN
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
# install packages
|
||||
- name: install fail2ban package and config
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
with_items:
|
||||
- fail2ban
|
Loading…
Reference in New Issue