Procházet zdrojové kódy

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 před 10 roky
rodič
revize
b690702754
2 změnil soubory, kde provedl 9 přidání a 1 odebrání
  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