main.yml 900 B

12345678910111213141516171819202122232425262728
  1. ---
  2. # tasks file for ff-supernode
  3. - include: debian.yml
  4. when: ansible_distribution == 'Debian'
  5. - include: debian.yml
  6. when: ansible_distribution == 'Ubuntu'
  7. - name: Install crontab to update the blacklist
  8. cron:
  9. name: Update blacklist
  10. minute: '*/5'
  11. job: wget -q -O /etc/fastd/fastd-blacklist.json https://raw.githubusercontent.com/ffruhr/fastdbl/master/fastd-blacklist.json
  12. - name: Install verify shell script
  13. template: src=fastd-blacklist.sh.j2 dest=/etc/fastd/fastd-blacklist.sh mode="u=rwx,g=rx,o=r"
  14. - name: Create supervisor services
  15. template: src=supervisor.service.j2 dest=/etc/supervisor/conf.d/{{item.name}}.conf
  16. with_items: "{{supervisor_services}}"
  17. notify: Restart supervisor
  18. - name: Install ntp.conf
  19. template: src=ntp.conf.j2 dest=/etc/ntp.conf
  20. - name: Install unbound domain config
  21. template: src=unbound.domain.j2 dest=/etc/unbound/conf.d/supernode.conf