--- - name: check if info-beamer base directory is configured debug: msg: "check if base directory is set" failed_when: not info_beamer_base_path - name: remove existing config directory file: path: "{{ info_beamer_base_path }}/config" state: absent - name: create new/empty config directory file: path: "{{ info_beamer_base_path }}/config" state: directory - name: configure video output resolution copy: content: "{{ info_beamer_tvservice }}" dest: "{{ info_beamer_base_path }}/config/tvservice" when: info_beamer_tvservice is defined - name: configure audio output copy: content: "{{ info_beamer_audio_target }}" dest: "{{ info_beamer_base_path }}/config/audio" when: info_beamer_audio_target is defined - name: configure ssh keys copy: content: "{{ info_beamer_ssh_keys | join('\n') }}" dest: "{{ info_beamer_base_path }}/config/authorized_keys" when: info_beamer_ssh_keys is defined - name: configure wired network interface copy: content: | {{ info_beamer_network.address }} {{ info_beamer_network.netmask }} {{ info_beamer_network.gateway }} {{ info_beamer_network.dns }} dest: "{{ info_beamer_base_path }}/config/network" when: info_beamer_network is defined - name: configure wireless network interface copy: content: | {{ info_beamer_wireless.ssid }} {{ info_beamer_wireless.key }} dest: "{{ info_beamer_base_path }}/config/wireless" when: info_beamer_wireless is defined - name: enable info-beamer feature flags loop: "{{ info_beamer_feature_flags | dict2items }}" loop_control: label: "{{ item.key }}({{ item.value }}" copy: content: "" dest: "{{ info_beamer_base_path }}/config/{{ item.key }}" when: item.value - name: install branding logo copy: src: "{{ info_beamer_branding_logo }}" dest: "{{ info_beamer_base_path }}/config/branding.ppm" when: info_beamer_branding_logo is defined - name: install branding background copy: src: "{{ info_beamer_branding_background }}" dest: "{{ info_beamer_base_path }}/config/branding.jpg" when: info_beamer_branding_background is defined - name: install branding video copy: src: "{{ info_beamer_branding_video }}" dest: "{{ info_beamer_base_path }}/config/branding.mp4" when: info_beamer_branding_video is defined - name: configure device connect key copy: content: "{{ info_beamer_device_connect_key }}" dest: "{{ info_beamer_base_path }}/config/device-connect-key.txt" when: info_beamer_device_connect_key is defined