debian.yml 626 B

123456789101112131415161718192021
  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. - supervisor
  11. - ntp
  12. - name: Install backport kernel for Debian wheezy
  13. apt: name=linux-image-amd64 default_release=wheezy-backports state=latest
  14. when: ansible_distribution_release == 'wheezy'
  15. notify: Reboot machine
  16. - name: Start and enable supervisor
  17. service: name=supervisor state=started enabled=yes