瀏覽代碼

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

Till Klocke 9 年之前
父節點
當前提交
d74d27b803
共有 1 個文件被更改,包括 7 次插入3 次删除
  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'