diff options
author | binary <me@rgoncalves.se> | 2020-08-12 11:01:36 +0200 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2020-08-12 11:01:36 +0200 |
commit | c856196a3471a2e7d547a11ec42d69f13a8fe31a (patch) | |
tree | 031f7c27a4d7a280d34a515ee8b3085ed7896c6f | |
parent | 25447594549f5abf954c331f1000d27260cf14a0 (diff) | |
download | infrastructure-c856196a3471a2e7d547a11ec42d69f13a8fe31a.tar.gz |
out of sync between remotes
-rw-r--r-- | inventory.ini | 4 | ||||
-rw-r--r-- | roles/setup_fail2ban/tasks/main.yml | 10 | ||||
-rw-r--r-- | roles/setup_utils/tasks/main.yml | 12 |
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 |