Explorar el Código

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 hace 9 años
padre
commit
b690702754
Se han modificado 2 ficheros con 9 adiciones y 1 borrados
  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
+
+- name: Mount all
+  shell: mount -a

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

@@ -2,4 +2,9 @@
 
 - name: Ensure Alfred build deps are installed
   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