Browse Source

Role ff-supernode now handles resolv stuff before everything else to not brake Ubuntu runs

Till Klocke 9 years ago
parent
commit
d74d27b803
1 changed files with 7 additions and 3 deletions
  1. 7 3
      roles/ff-supernode/tasks/debian.yml

+ 7 - 3
roles/ff-supernode/tasks/debian.yml

@@ -1,3 +1,10 @@
+- 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:
@@ -5,9 +12,6 @@
   - supervisor
   - ntp
 
-- name: Remove resolvconf from Ubunut
-  apt: name=resolvconf state=absent
-
 - name: Install backport kernel for Debian wheezy
   apt: name=linux-image-amd64 default_release=wheezy-backports state=latest
   when: ansible_distribution_release == 'wheezy'