Browse Source

Fix install of linux kernel by properly detecting architecture

Emmanuel Bouthenot 4 years ago
parent
commit
b81fd5fa90
1 changed files with 9 additions and 1 deletions
  1. 9 1
      roles/common/tasks/firewall.yml

+ 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)'
   apt:
     pkg:
-      - 'linux-image-{{ facter_architecture }}'
+      - 'linux-image-{{ dpkg_architecture.stdout }}'
       - 'ferm'
     state: 'present'
   tags: