Add bitlbee role

Signed-off-by: decentral1se's avatarLuke Murphy <lukewm@riseup.net>
parent 6d78e07b
# znc
A role to install and configure [bitlbee].
[bitlee]: http://bitlbee.org/
# Supported Operating Systems
* Raspbian Stretch Lite 2018-10-09
* Debian Stretch
# Role Variables
* `bitlbee_system_user`: User account for bitlbee.
---
galaxy_info:
author: decentral1se
description: A role to install and configure bitlbee.
license: GPLv3
min_ansible_version: 2.7
---
- name: Ensure mandatory variables are configured.
assert:
that: "{{ item }} is defined"
loop:
- bitlbee_system_user
- name: Install Bitlbee.
apt:
name: bitlbee
state: present
- name: Add a new bitlbee user.
become: true
user:
name: "{{ bitlbee_system_user }}"
system: true
- name: Create Bitlbee user root directory.
become: true
become_user: "{{ bitlbee_system_user }}"
file:
path: "/home/{{ bitlbee_system_user }}"
state: directory
owner: "{{ bitlbee_system_user }}"
group: "{{ bitlbee_system_user }}"
mode: 0750
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment