Update to 2021-12-01 19:13

This commit is contained in:
Daniel Berteaud
2021-12-01 19:13:34 +01:00
commit 4c4556c660
2153 changed files with 60999 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
---
# patrix_server:
#
#
# Auth can be done either with login / pass
# patrix_user:
# patrix_pass:
#
# Or with an existing token
#
# patrix_token:
#
# patrix_room:
...

View File

@@ -0,0 +1,25 @@
---
- name: Install dependencies
apt:
name:
- libwww-perl
- liblwp-protocol-https-perl
- libconfig-simple-perl
- libfile-homedir-perl
- libfile-mimeinfo-perl
- liburi-perl
- libjson-perl
- libterm-readkey-perl
- libhash-merge-simple-perl
tags: patrix
- name: Install patrix
get_url:
url: https://raw.githubusercontent.com/dani/patrix/master/scripts/patrix
dest: /usr/local/bin/patrix
mode: 0755
environment:
- https_proxy: "{{ system_proxy | default('') }}"
tags: patrix

View File

@@ -0,0 +1,5 @@
---
- name: Install patrix
yum: name=patrix
tags: patrix

View File

@@ -0,0 +1,9 @@
---
- include: install_{{ ansible_os_family }}.yml
- name: Deploy patrix config for root user
template: src=patrixrc.j2 dest=/root/.patrixrc mode='600'
tags: patrix
...

View File

@@ -0,0 +1,11 @@
[default]
server = {{ patrix_server }}
{% if patrix_user is defined and patrix_pass is defined %}
user = {{ patrix_user }}
password = {{ patrix_pass }}
{% elif patrix_token is defined %}
access_token = {{ patrix_token }}
{% endif %}
{% if patrix_room is defined %}
room = {{ patrix_room }}
{% endif %}