fix bug in the way motd info was being grabbed

master
Glenn K. Lockwood 4 years ago
parent be1f6950ef
commit 6e19ec186d
  1. 5
      roles/common/tasks/raspi-facts.yml

@ -193,7 +193,7 @@
- name: get Raspberry Pi revision info - name: get Raspberry Pi revision info
command: awk '/^Revision/ {print $3}' /proc/cpuinfo command: awk '/^Revision/ {print $3}' /proc/cpuinfo
register: raspi_rev register: raspi_rev_check
changed_when: False changed_when: False
check_mode: no check_mode: no
tags: tags:
@ -225,14 +225,13 @@
raspi_gpu_mem_256: "{{ raspi_gpu_mem_256.stdout }}" raspi_gpu_mem_256: "{{ raspi_gpu_mem_256.stdout }}"
raspi_gpu_mem_512: "{{ raspi_gpu_mem_512.stdout }}" raspi_gpu_mem_512: "{{ raspi_gpu_mem_512.stdout }}"
raspi_gpu_mem_1024: "{{ raspi_gpu_mem_1024.stdout }}" raspi_gpu_mem_1024: "{{ raspi_gpu_mem_1024.stdout }}"
raspi_rev: "{{ raspi_rev.stdout }}"
check_mode: no check_mode: no
tags: tags:
- raspi - raspi
- name: set raspi-config facts (for motd) - name: set raspi-config facts (for motd)
set_fact: set_fact:
raspi_rev: "{{ raspi_rev.stdout }}" raspi_rev: "{{ raspi_rev_check.stdout }}"
check_mode: no check_mode: no
tags: tags:
- raspi - raspi

Loading…
Cancel
Save