name: fail2ban
state: latest
update_cache: yes
+ register: fail2ban
- name: Configure Debian firewall
become: true
group: root
mode: '0750'
force: no
+ register: etc
- name: Fix permissions for /etc/network/functions
become: true
file:
path: /etc/network/functions.phd
mode: '0640'
+ register: functions
- name: Start Debian firewall
become: true
command: /etc/init.d/iptables.sh start
+ when: fail2ban.changed or etc.changed or functions.changed
'.screenrc', '.shellrc', '.tmux.conf', '.vimrc',
]
+- name: "Setup ~root - check .sh_history"
+ become: true
+ stat:
+ path: ~root/.sh_history
+ register: sh_history
+
- name: "Setup ~root - create .sh_history"
become: true
file:
owner: root
group: root
mode: "0600"
+ when: not sh_history.stat.exists
- name: "Setup ~root - link .bash_history"
become: true