blacklist.yml 777 B

12345678910111213141516171819202122
  1. ---
  2. - name: Check if global blacklist file exists
  3. stat: path=/etc/fastd/fastd-blacklist.json
  4. register: blacklist
  5. - name: Ensure blacklist file exists
  6. file: name=/etc/fastd/fastd-blacklist.json state=touch owner=fastd
  7. when: not blacklist.stat.exists
  8. - name: Ensure ffdo blacklist file exists
  9. copy: src=ffdo-blacklist.txt dest=/etc/fastd/ffdo-blacklist.txt
  10. - name: Install crontab to update the blacklist
  11. cron:
  12. name: Update fastd blacklist
  13. cron_file: fastd-blacklist
  14. user: fastd
  15. minute: '*/5'
  16. job: curl -s -o /etc/fastd/fastd-blacklist.json https://raw.githubusercontent.com/ffruhr/fastdbl/master/fastd-blacklist.json
  17. - name: Install verify shell script
  18. copy: src=fastd-blacklist.sh dest=/etc/fastd/fastd-blacklist.sh mode="u=rwx,g=rx,o=rx"