aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--inventory.ini4
-rw-r--r--roles/setup_fail2ban/tasks/main.yml10
-rw-r--r--roles/setup_utils/tasks/main.yml12
3 files changed, 21 insertions, 5 deletions
diff --git a/inventory.ini b/inventory.ini
index 27d5a0b..e009dd7 100644
--- a/inventory.ini
+++ b/inventory.ini
@@ -43,15 +43,19 @@ OOP-FS-raspberry
# =========================================================================== #
[servers:vars]
+package_curl="curl"
package_neovim="neovim"
package_tmux="tmux"
+package_wget="wget"
package_zsh="zsh"
[openbsd:vars]
group_root="wheel"
+path_zsh_bin="/usr/local/bin/zsh"
[centos:vars]
group_root="root"
+path_zsh_bin="/bin/zsh"
[debian:vars]
group_root="root" \ No newline at end of file
diff --git a/roles/setup_fail2ban/tasks/main.yml b/roles/setup_fail2ban/tasks/main.yml
index b0edb6e..d96bc07 100644
--- a/roles/setup_fail2ban/tasks/main.yml
+++ b/roles/setup_fail2ban/tasks/main.yml
@@ -23,7 +23,7 @@
shell: cp /etc/fail2ban/jail.local /etc/fail2ban/jail.local.backup
when: stat_result.stat.exists
-- name: Copy fail2ban :: jail.local
+- name: Copy fail2ban jail.local
copy:
src: jail.local
dest: /etc/fail2ban/
@@ -31,7 +31,7 @@
group: root
mode: "0644"
-- name: Copy fail2ban :: path-defaults.conf
+- name: Copy fail2ban path-defaults.conf
copy:
src: jail.local
dest: /etc/fail2ban/
@@ -39,7 +39,7 @@
group: root
mode: "0644"
-- name: Copy fail2ban :: path-defaults.conf
+- name: Copy fail2ban path-defaults.conf
copy:
src: jail.local
dest: /etc/fail2ban/
@@ -47,7 +47,7 @@
group: root
mode: "0644"
-- name: Copy fail2ban :: jail-sshd.conf
+- name: Copy fail2ban jail-sshd.conf
copy:
src: jail-sshd.conf
dest: /etc/fail2ban/jail.d
@@ -55,7 +55,7 @@
group: root
mode: "0644"
-- name: Copy fail2ban :: jail-lighttpd.conf
+- name: Copy fail2ban jail-lighttpd.conf
copy:
src: jail-lighttpd.conf
dest: /etc/fail2ban/jail.d
diff --git a/roles/setup_utils/tasks/main.yml b/roles/setup_utils/tasks/main.yml
index 446ec46..65e810a 100644
--- a/roles/setup_utils/tasks/main.yml
+++ b/roles/setup_utils/tasks/main.yml
@@ -25,6 +25,18 @@
state: present
ignore_errors: yes
+- name: Check installation of curl
+ package:
+ name: "{{ package_curl }}"
+ state: present
+ ignore_errors: yes
+
+- name: Check installation of wget
+ package:
+ name: "{{ package_wget }}"
+ state: present
+ ignore_errors: yes
+
- name: Copy zshrc configuration file
copy:
src: zshrc
remember that computers suck.