Skip to content
Snippets Groups Projects
Commit 67a54a07 authored by jurgenhaas's avatar jurgenhaas
Browse files

Make startup script executable and link to executables

parent c40c31f4
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,26 @@
copy:
src: '/tmp/fail2ban-{{ fail2ban_version }}/files/debian-initd'
dest: '/etc/init.d/fail2ban'
mode: '755'
remote_src: yes
notify:
- "Include Fail2Ban to Boot-List"
- "Restart Fail2Ban"
- name: "Copy Service Script"
copy:
src: '/tmp/fail2ban-{{ fail2ban_version }}/files/fail2ban.service'
dest: '/lib/systemd/system/fail2ban.service'
mode: '644'
remote_src: yes
- name: "Create symbolic links"
file:
src: '/usr/local/bin/{{ item }}'
path: '/usr/bin/{{ item }}'
state: 'link'
with_items:
- 'fail2ban-client'
- 'fail2ban-python'
- 'fail2ban-regex'
- 'fail2ban-server'
- 'fail2ban-testcases'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment