bank-terminal: Configure display
This commit is contained in:
parent
f95cccdad3
commit
39afabce7e
2 changed files with 29 additions and 0 deletions
|
@ -2,3 +2,6 @@
|
||||||
- name: daemon_reload
|
- name: daemon_reload
|
||||||
systemd:
|
systemd:
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
|
|
||||||
|
- name: console_setup
|
||||||
|
command: dpkg-reconfigure console-setup --frontend noninteractive
|
||||||
|
|
|
@ -34,8 +34,34 @@
|
||||||
mode: 0644
|
mode: 0644
|
||||||
notify: daemon_reload
|
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
|
- name: Read pubkey
|
||||||
command: /bin/cat /home/{{ bank_terminal_user }}/.ssh/id_ed25519.pub
|
command: /bin/cat /home/{{ bank_terminal_user }}/.ssh/id_ed25519.pub
|
||||||
|
changed_when: no
|
||||||
register: pubkey
|
register: pubkey
|
||||||
|
|
||||||
- debug:
|
- debug:
|
||||||
|
|
Loading…
Add table
Reference in a new issue