1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_weechat.git synced 2024-08-16 13:09:48 +02:00
ansible_role_weechat/README.md

110 lines
5.6 KiB
Markdown
Raw Normal View History

2021-05-28 01:25:12 +02:00
[![Ansible Galaxy](https://raw.githubusercontent.com/chaos-bodensee/role_weechat/master/.github/galaxy.svg?sanitize=true)](https://galaxy.ansible.com/do1jlr/weechat) [![MIT License](https://raw.githubusercontent.com/chaos-bodensee/role_weechat/master/.github/license.svg?sanitize=true)](https://github.com/chaos-bodensee/role_weechat/blob/master/LICENSE)
2020-03-15 21:12:00 +01:00
ansible weechat role
2019-07-20 21:43:40 +02:00
==========================
2020-03-11 10:48:48 +01:00
Ansible role to install and configure weechat.
2019-07-20 21:43:40 +02:00
2020-03-11 20:33:00 +01:00
[![WEECHAT](https://weechat.org/media/images/weechat_logo_large.png)](https://weechat.org/)
<br/>WeeChat, the extensible chat client.
2020-03-11 10:48:48 +01:00
What can this role:
2019-07-20 21:43:40 +02:00
-----------------
- install weechat on Debian, Ubuntu, Archlinux or Fedora
2020-03-12 23:15:50 +01:00
- configure weechat
2020-03-11 10:48:48 +01:00
- autostart via tmux and systemd
2019-07-20 20:04:45 +02:00
2020-03-11 22:49:18 +01:00
Settings
----------
```yaml
2021-05-27 16:18:04 +02:00
weechat__install: true
2020-03-11 22:49:18 +01:00
```
2021-05-27 16:18:04 +02:00
+ ``weechat__install: true``: This role should install weechat. On debian based OS we add the official weechat apt source and install some plugin support and weechat-doc.
+ ``weechat__install: false``: We do not install weechat
2020-03-11 22:49:18 +01:00
2020-03-12 03:42:12 +01:00
```yaml
2021-05-27 16:18:04 +02:00
weechat__autostart: false
2020-03-11 22:49:18 +01:00
```
2021-05-27 16:18:04 +02:00
+ ``weechat__autostart: false``: We do not install any autostart mechanism
+ ``weechat__autostart: true``: This role install tmux and creates a systemd service to launch weechat inside a tmux session as user ``{{ weechat__user }}``
2020-03-11 22:49:18 +01:00
```yaml
2021-05-27 16:18:04 +02:00
weechat__install_plugins: false
2020-03-11 22:49:18 +01:00
```
2021-05-27 16:18:04 +02:00
+ ``weechat__install_plugins: false``: we do not install any weechat plugins
+ ``weechat__install_plugins: true``: We do install all official plugins specified in ``{{ weecat.plugins }}`` dict.
2020-03-11 22:49:18 +01:00
```yaml
2021-05-27 16:18:04 +02:00
weechat__use_custom_config: false
2020-03-11 22:49:18 +01:00
```
2021-05-27 16:18:04 +02:00
+ ``weechat__use_custom_config: false``: You do not provide a custom config from your own git repository
+ ``weechat__use_custom_config: true``: You have your weechat configuration in a own git repository and want to use it
2020-03-12 03:42:12 +01:00
```yaml
2021-05-27 16:18:04 +02:00
weechat__install_plugins: false
2020-03-12 03:42:12 +01:00
```
2021-05-27 16:18:04 +02:00
+ ``weechat__install_plugins: false`` we do not install any official weechat plugins
+ ``weechat__install_plugins: true`` we install the official weechat plugins defined in the ``{{ weechat__plugins: [] }}`` directory.
2020-03-12 03:42:12 +01:00
```yaml
2021-05-27 16:18:04 +02:00
weechat__plugins:
- go.py
- iset.pl
2020-03-12 03:42:12 +01:00
```
2021-05-27 16:18:04 +02:00
+ Example ``weechat__plugins: []`` list
2020-03-12 03:42:12 +01:00
```yaml
2021-05-27 16:18:04 +02:00
weechat__user: "{{ ansible_user_id }}"
2020-03-12 03:42:12 +01:00
```
2021-05-27 16:18:04 +02:00
+ the user to use weechat with. This value is used in the ``autostart`` task, the ``custom_config`` task and the ``{{ weechat__home_directory }}`` variable
2020-03-12 03:42:12 +01:00
```yaml
2021-05-27 16:18:04 +02:00
weechat__home_directory: "{{ ansible_env.HOME | default('/home/{{ weechat__user }}') }}"
2020-03-12 03:42:12 +01:00
```
2021-05-27 16:18:04 +02:00
+ the path where the weechat home is located. If the variable ``{{ ansible_env.HOME }}`` is not set it will use ``"/home/{{ weechat__user }}"`` as fallback.
2020-03-11 22:49:18 +01:00
2020-03-12 03:42:12 +01:00
```yaml
2021-05-27 16:18:04 +02:00
weechat__gpg_id: '11E9DE8848F2B65222AA75B8D1820DB22A11534E'
2020-03-12 03:42:12 +01:00
```
+ This is the gpg fingerprint from the [official weechat debian repo](https://weechat.org/download/debian/)
2020-03-11 22:49:18 +01:00
2020-03-12 03:42:12 +01:00
```yaml
2021-05-27 16:18:04 +02:00
weechat__custom_private_repo: false
2020-03-12 03:42:12 +01:00
```
+ The path to your git repo with your personal weechat config.
2021-05-27 16:18:04 +02:00
+ This role clones the repo to the ``"{{ weechat__home_directory }}/.weechat"`` directory. *(Also known al your local .weechat directory.)* It will fail if you already have files and/or folders in your local .weechat dorectory.
2020-03-12 03:42:12 +01:00
+ You have to add, commit and push the local changes in your local .weechat folder manually. Please be aware that it is a good idea to disable your log or at least add the weechatlog folder to your .gitignore file in your personal weechat config.
2020-03-11 22:49:18 +01:00
2020-03-12 03:42:12 +01:00
```yaml
2021-05-27 16:18:04 +02:00
weechat__custom_gen_ssh_key_pair: true
2020-03-12 03:42:12 +01:00
```
2021-05-27 16:18:04 +02:00
+ ``weechat__custom_gen_ssh_key_pair: true``: We will generate a eleptic curve ssh key *(if it not already exist at ``"{{ weechat__home_directory }}/.ssh/id_ed25519"``)* and print the public key to the prompt. This will give you the time to add this public key to your private git repo for your own weechat config as deploy key. This is required to download your private repo withour username/password. This requires that you set ``{{ weechat__custom_private_repo }}`` to the ssh accessable version of your git repo.
+ ``weechat__custom_gen_ssh_key_pair: false``: We do not manage access to the git repo with your weechat config.
```yaml
weechat__custom_version: main
```
+ ``weechat__custom_version: main``: set the git branch, tag, hash or version this role should use if you use a custom git repo for your weechat config.
2020-01-15 17:41:02 +01:00
2020-03-11 20:24:00 +01:00
References and Inspiration:
----------------------
+ Information about installation on debian/ubuntu can be found at [weechat.org/download/debian](https://weechat.org/download/debian/)
2020-03-12 03:42:12 +01:00
+ Some parts of the Weechat configuration is inspired by [github.com/irth/ansible-role-weechat](https://github.com/irth/ansible-role-weechat.git) but written in a complete different way. Some other is completly different.
2020-03-11 20:33:00 +01:00
+ Autostart and systemd is inspired by [ubuntu wiki](https://wiki.ubuntuusers.de/Howto/systemd_Service_Unit_Beispiel/) and [ansible docs](https://docs.ansible.com/ansible/latest/modules/systemd_module.html).
2020-03-12 03:42:12 +01:00
Contribute
------------
If you missing a feature, found a bug or have questions about this role please feel free to open a git issue. Or - even better - create a pull request.
LICENSE
----------
[MIT License](https://github.com/chaos-bodensee/role_weechat/blob/master/LICENSE)<br/>
+ ``Copyright (c) 2019 L3D``
+ The complete list of awesome contributros can be found [here](https://github.com/chaos-bodensee/role_weechat/graphs/contributors).
2020-11-10 14:24:51 +01:00
### testing
2021-08-17 12:36:00 +02:00
This role is tested with some of [these github-action](https://github.com/search?q=topic%3Acheck-ansible+topic%3Agithub-actions+org%3Aroles-ansible&type=Repositories) tests for different versions of differen linux systems. Linting is tested via the [ansible-lint action](https://github.com/marketplace/actions/ansible-lint).
2020-11-10 14:24:51 +01:00
If you want to find out more about our tests, please have a look at the github marketplace.