123456789101112131415161718192021 |
- - name: Remove resolvconf from Ubunut
- when: ansible_distribution == 'Ubuntu'
- apt: name=resolvconf state=absent
-
- - name: Install custom resolv.conf
- template: src=resolv.conf.j2 dest=/etc/resolv.conf
- - name: Make sure necessary tools are installed
- apt: name={{item}} state=present
- with_items:
- - wget
- - supervisor
- - ntp
- - name: Install backport kernel for Debian wheezy
- apt: name=linux-image-amd64 default_release=wheezy-backports state=latest
- when: ansible_distribution_release == 'wheezy'
- notify: Reboot machine
- - name: Start and enable supervisor
- service: name=supervisor state=started enabled=yes
|