--- # Lirc needs a custom build on Raspian Buster, more details here: # https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=235256 # https://gist.github.com/billpatrianakos/cb72e984d4730043fe79cbe5fc8f7941 - name: Create lirc config dir file: path=/etc/lirc state=directory - name: Install config file lirc_options.conf copy: src=lirc_options.conf dest=/etc/lirc/lirc_options.conf - name: Install config file lircd.conf copy: src=lircd.conf dest=/etc/lirc/lircd.conf - name: Install remote file copy: src=hauppauge.conf dest=/etc/lirc/hauppauge.conf - name: create temporary directory tempfile: state: directory suffix: temp register: tempdir - name: Copy over lirc customly compiled lirc packages copy: src: debs/ dest: "{{ tempdir.path }}" when: tempdir.path is defined - name: Install custom lirc package 1 apt: deb: "{{ tempdir.path }}/liblirc0_0.10.1-5.2_armhf.deb" when: tempdir.path is defined - name: Install custom lirc package 2 apt: deb: "{{ tempdir.path }}/liblircclient0_0.10.1-5.2_armhf.deb" when: tempdir.path is defined - name: Install custom lirc package 3 apt: deb: "{{ tempdir.path }}/lirc_0.10.1-5.2_armhf.deb" when: tempdir.path is defined - name: Activate overlay in boot config lineinfile: path: /boot/config.txt regexp: "^#?dtoverlay=gpio-ir" line: "dtoverlay=gpio-ir,gpio_pin=17" register: boot_overlay - name: Restart lircd systemd: name=lircd state=started enabled=yes daemon_reload=yes - name: Reboot if boot overlay changed reboot: when: boot_overlay.changed - name: Add to sysdweb include_role: name: pi-sysdweb vars: sysdweb_name: lircd