bank-terminal: Configure display

This commit is contained in:
polyfloyd 2020-05-25 14:52:35 +02:00
parent f95cccdad3
commit 39afabce7e
2 changed files with 29 additions and 0 deletions

View file

@ -2,3 +2,6 @@
- name: daemon_reload
systemd:
daemon_reload: yes
- name: console_setup
command: dpkg-reconfigure console-setup --frontend noninteractive

View file

@ -34,8 +34,34 @@
mode: 0644
notify: daemon_reload
- name: Clear MOTD
copy:
content: ""
dest: /etc/motd
# Set console font so the Revbank QR codes are rendered correctly.
- name: Console setup
lineinfile:
path: /etc/default/console-setup
line: '{{ item.k }}="{{ item.v }}"'
regexp: "^#?{{ item.k }}"
with_items:
- { k: CHARMAP, v: UTF-8 }
- { k: CODESET, v: Uni2 }
- { k: FONTFACE, v: VGA }
- { k: FONTSIZE, v: 8x14 }
- { k: FONT, v: CyrKoi-TerminusBold28x14.psf.gz }
notify: console_setup
- name: Console Setup Management Note
lineinfile:
path: /etc/default/console-setup
line: '# Managed by Ansible'
insertafter: "CONFIGURATION FILE"
- name: Read pubkey
command: /bin/cat /home/{{ bank_terminal_user }}/.ssh/id_ed25519.pub
changed_when: no
register: pubkey
- debug: