Эх сурвалжийг харах

Fix install of linux kernel by properly detecting architecture

Emmanuel Bouthenot 5 жил өмнө
parent
commit
b81fd5fa90

+ 9 - 1
roles/common/tasks/firewall.yml

@@ -1,7 +1,15 @@
+- name: 'Get architecture using dpkg'
+  command: dpkg --print-architecture
+  register: dpkg_architecture
+  changed_when: False
+  check_mode: no
+  tags:
+    - 'firewall'
+
 - name: 'Install firewall package (ferm)'
 - name: 'Install firewall package (ferm)'
   apt:
   apt:
     pkg:
     pkg:
-      - 'linux-image-{{ facter_architecture }}'
+      - 'linux-image-{{ dpkg_architecture.stdout }}'
       - 'ferm'
       - 'ferm'
     state: 'present'
     state: 'present'
   tags:
   tags: