From b60e5e95e65e67b365aa6362235c202637f0443a Mon Sep 17 00:00:00 2001 From: Ariel Antigua Date: Thu, 6 Sep 2018 12:37:26 -0400 Subject: [PATCH] Update 'local.yaml' --- local.yaml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/local.yaml b/local.yaml index 1285a49..5ddb1c3 100644 --- a/local.yaml +++ b/local.yaml @@ -4,18 +4,21 @@ tasks: - name: Installs fail2ban apt: pkg=fail2ban state=installed update_cache=true - - name: clone repo to target - git: - repo: gitea@git.aanetworks.org:ariel/playbook-base.git - version: master - dest: /tmp/basefiles - accept_hostkey: yes + + - name: download allow file + get_url: + url: https://git.aanetworks.org/ariel/playbook-base/src/branch/master/static_files/hosts.allow + dest: /tmp/hosts.allow + - name: downlod deny file + get_url: + url: https://git.aanetworks.org/ariel/playbook-base/src/branch/master/static_files/hosts.deny + dest: /tmp/hosts.deny - name: Hosts file Deny - copy: src=/tmp/basefiles/static_files/hosts.deny dest=/etc/hosts.deny + copy: src=/tmp/hosts.deny dest=/etc/hosts.deny - name: Hosts file Allow - copy: src=/tmp/basefiles/static_files/hosts.allow dest=/etc/hosts.allow + copy: src=/tmp/hosts.allow dest=/etc/hosts.allow handlers: - name: start fail2ban