An Ansible role for installing the Linux desktop client for Signal
This role requires the ansible.utils collection be installed from Ansible-Galaxy via:
ansible-galaxy collection install ansible.utilsIt then also requires the jsonschema Python package be installed. It can be installed via pip:
pip3 install jsonschemaThis role requires the following input variables:
signal:
remove: [bool] Indicates if the application should be removed. Also removes repository information.
gather_facts: [bool] Indicates if package fact action should be gathered before going through configuration steps. Defaults to true.
signing:
ascii_key_file: [string] [required] Path to the public ascii signing key that Signal signs their packages with.Signal hosts their signing key over at https://updates.signal.org/desktop/apt/keys.asc
Before the role can be used it needs to be added to the machine running the playbook, and as of writing this, this role is not hosted on Ansible-Galaxy only on Github.
-
Create a
requirements.ymlfile in the root directory of the playbook being worked on. -
Add the following definition inside the
requirements.ymlfile:
- name: hth-act
src: https://github.com/hrafnthor/ansible-signal.git
scm: git- Install the requirements by executing
ansible-galaxy install -r .requirements.ymlThis will allow any playbook run from this machine to use the role hth-signal
signal:
remove: false
gather_facts: false
signing:
ascii_key_file: signal-desktop-signing-key.asc- hosts: all
vars:
- signal:
remove: false
gather_facts: false
signing:
ascii_key_file: signal-desktop-signing-key.asc
roles:
- hth-signalApache 2.0. See attached license file.
Hrafn Thorvaldsson. http://www.hth.is