Просмотр исходного кода

Fix install of linux kernel by properly detecting architecture

Emmanuel Bouthenot 5 лет назад
Родитель
Сommit
b81fd5fa90
1 измененных файлов с 9 добавлено и 1 удалено
  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: