blacklist.yml 521 B

123456789101112131415
  1. ---
  2. - name: Ensure blacklist file exists
  3. file: name=/etc/fastd/fastd-blacklist.json state=touch owner=fastd
  4. - name: Install crontab to update the blacklist
  5. cron:
  6. name: Update fastd blacklist
  7. cron_file: fastd-blacklist
  8. user: fastd
  9. minute: '*/5'
  10. job: curl -s -o /etc/fastd/fastd-blacklist.json https://raw.githubusercontent.com/ffruhr/fastdbl/master/fastd-blacklist.json
  11. - name: Install verify shell script
  12. copy: src=fastd-blacklist.sh dest=/etc/fastd/fastd-blacklist.sh mode="u=rwx,g=rx,o=rx"