Explorar o código

Fix install of linux kernel by properly detecting architecture

Emmanuel Bouthenot %!s(int64=5) %!d(string=hai) anos
pai
achega
b81fd5fa90
Modificáronse 1 ficheiros con 9 adicións e 1 borrados
  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: