debian.yml 727 B

123456789101112131415161718192021222324252627
  1. - name: Remove resolvconf from Ubunut
  2. when: ansible_distribution == 'Ubuntu'
  3. apt: name=resolvconf state=absent
  4. - name: Install custom resolv.conf
  5. template: src=resolv.conf.j2 dest=/etc/resolv.conf
  6. - name: Make sure necessary tools are installed
  7. apt: name={{item}} state=present
  8. with_items:
  9. - wget
  10. - ntp
  11. - git
  12. - name: Install dependencies for ffrl tools
  13. apt: name={{item}}
  14. with_items:
  15. - python3
  16. - python3-pip
  17. - name: Install backport kernel for Debian wheezy
  18. apt: name=linux-image-amd64 default_release=wheezy-backports state=latest
  19. when: ansible_distribution_release == 'wheezy'
  20. notify: Reboot machine
  21. - name: Start and enable supervisor
  22. service: name=supervisor state=started enabled=yes