aboutsummaryrefslogtreecommitdiffstats
path: root/roles/jumbotron/tasks/console.yml
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2018-10-02 22:26:17 +0200
committerEmil Renner Berthing <esmil@labitat.dk>2018-10-03 21:09:55 +0200
commit7cc8370ab5e3428c24f37b7259331b10038b6acb (patch)
tree3a54b887aed7b40662b267bba5edcf82fc29464e /roles/jumbotron/tasks/console.yml
parent4f98942a50341c2827ace103f153374f0b351135 (diff)
downloadlabitat-ansible-7cc8370ab5e3428c24f37b7259331b10038b6acb.tar.gz
labitat-ansible-7cc8370ab5e3428c24f37b7259331b10038b6acb.tar.xz
labitat-ansible-7cc8370ab5e3428c24f37b7259331b10038b6acb.zip
jumbotron: add role to set up jumbotron rpi
Diffstat (limited to 'roles/jumbotron/tasks/console.yml')
-rw-r--r--roles/jumbotron/tasks/console.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/roles/jumbotron/tasks/console.yml b/roles/jumbotron/tasks/console.yml
new file mode 100644
index 0000000..55ede76
--- /dev/null
+++ b/roles/jumbotron/tasks/console.yml
@@ -0,0 +1,35 @@
+---
+- name: Configure VGA output
+ lineinfile:
+ path: '/boot/config.txt'
+ regexp: "^{{ item.rsplit('=', 1)[0] }}="
+ line: '{{ item }}'
+ with_items:
+ - 'dtoverlay=vga666'
+ - 'enable_dpi_lcd=1'
+ - 'display_default_lcd=1'
+ - 'dpi_group=2'
+ - 'dpi_mode=35'
+ - 'dtparam=spi=off'
+ - 'dtparam=i2c_arm=off'
+
+- name: Configure console font
+ lineinfile:
+ path: '/etc/default/console-setup'
+ regexp: "^{{ item.split('=', 1)[0] }}="
+ line: '{{ item }}'
+ with_items:
+ - 'CHARMAP="UTF-8"'
+ - 'CODESET="Lat15"'
+ - 'FONTFACE="Terminus"'
+ - 'FONTSIZE="32x16"'
+
+- name: Configure console keyboard
+ lineinfile:
+ path: '/etc/default/keyboard'
+ regexp: "^{{ item.split('=', 1)[0] }}="
+ line: '{{ item }}'
+ with_items:
+ - 'XKBLAYOUT="dk"'
+
+# vim: set ts=2 sw=2 et: