Pārlūkot izejas kodu

On Wheezy alfred now adds an entry to fstab to automount the debugfs, since it doesn't seem to be mounted on wheezy

Till Klocke 10 gadi atpakaļ
vecāks
revīzija
b690702754
2 mainītis faili ar 9 papildinājumiem un 1 dzēšanām
  1. 3 0
      roles/alfred/handlers/main.yml
  2. 6 1
      roles/alfred/tasks/debian.yml

+ 3 - 0
roles/alfred/handlers/main.yml

@@ -1,2 +1,5 @@
 ---
 ---
 # handlers file for alfred
 # handlers file for alfred
+
+- name: Mount all
+  shell: mount -a

+ 6 - 1
roles/alfred/tasks/debian.yml

@@ -2,4 +2,9 @@
 
 
 - name: Ensure Alfred build deps are installed
 - name: Ensure Alfred build deps are installed
   apt: name={{item}} state=present
   apt: name={{item}} state=present
-  with_items: "{{alfred_build_deps}}"
+  with_items: "{{alfred_build_deps}}"
+
+- name: Ensure that debugfs is mounted. Alfred seems to depend on it
+  when: ansible_distribution_release == 'wheezy'
+  lineinfile: dest=/etc/fstab line="none /sys/kernel/debug     debugfs   defaults   0  0"
+  notify: Mount all