Преглед на файлове

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 години
родител
ревизия
b690702754
променени са 2 файла, в които са добавени 9 реда и са изтрити 1 реда
  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