소스 검색

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 9 년 전
부모
커밋
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