mirror of
https://github.com/famedly/ansible-collection-services
synced 2024-11-10 05:54:14 +00:00
chore(murmur): fix lints
This commit is contained in:
parent
6a1ecfa4cf
commit
6b8db17e4a
5 changed files with 52 additions and 52 deletions
|
@ -31,4 +31,3 @@ rules:
|
|||
type: unix
|
||||
trailing-spaces: disable
|
||||
truthy: disable
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
murmur_version: "1.3.1"
|
||||
murmur_docker_ports: ["64738:64738"]
|
||||
murmur_docker_labels:
|
||||
murmur_docker_labels:
|
||||
version: "{{ murmur_version }}"
|
||||
murmur_base_path: "/opt/murmur"
|
||||
|
|
|
@ -6,13 +6,13 @@ galaxy_info:
|
|||
|
||||
license: AGPL-3.0-or-later
|
||||
|
||||
min_ansible_version: 2.5
|
||||
min_ansible_version: "2.5"
|
||||
|
||||
platforms:
|
||||
- name: Debian
|
||||
versions:
|
||||
- 9
|
||||
- 10
|
||||
- name: Debian
|
||||
versions:
|
||||
- "9"
|
||||
- "10"
|
||||
|
||||
galaxy_tags: []
|
||||
|
||||
|
|
|
@ -1,45 +1,46 @@
|
|||
---
|
||||
- name: Add the user '{{ murmur_user_name }}'
|
||||
user:
|
||||
name: '{{ murmur_user_name }}'
|
||||
comment: User to run murmur-server
|
||||
create_home: false
|
||||
register: murmur_user
|
||||
become: true
|
||||
- name: Add the user '{{ murmur_user_name }}'
|
||||
user:
|
||||
name: '{{ murmur_user_name }}'
|
||||
comment: User to run murmur-server
|
||||
create_home: false
|
||||
register: murmur_user
|
||||
become: true
|
||||
|
||||
- name: create directory for murmur config, data and sqlite
|
||||
file:
|
||||
path: '{{ murmur_base_path }}'
|
||||
state: directory
|
||||
owner: "{{ murmur_user.name }}"
|
||||
group: "{{ murmur_user.group }}"
|
||||
become: true
|
||||
|
||||
- name: copy config at the right location
|
||||
template:
|
||||
src: murmur-config.ini
|
||||
dest: "{{ murmur_config_path }}"
|
||||
owner: "{{ murmur_user.name }}"
|
||||
group: "{{ murmur_user.group }}"
|
||||
mode: '0644'
|
||||
become: true
|
||||
- name: Create directory for murmur config, data and sqlite
|
||||
file:
|
||||
path: '{{ murmur_base_path }}'
|
||||
state: directory
|
||||
mode: "0755"
|
||||
owner: "{{ murmur_user.name }}"
|
||||
group: "{{ murmur_user.group }}"
|
||||
become: true
|
||||
|
||||
- name: install murmur with docker
|
||||
docker_container:
|
||||
name: "{{ murmur_docker_name }}"
|
||||
image: "{{ murmur_docker_image }}"
|
||||
ports: "{{ murmur_docker_ports }}"
|
||||
labels: "{{ murmur_docker_labels }}"
|
||||
restart_policy: unless-stopped
|
||||
recreate: true
|
||||
pull: true
|
||||
entrypoint:
|
||||
- "/usr/bin/murmurd"
|
||||
- "-fg"
|
||||
- "-v"
|
||||
- "-ini {{ murmur_config_path }}"
|
||||
# - "-supw testtest"
|
||||
user: "{{ murmur_user.uid }}:{{ murmur_user.group }}"
|
||||
volumes:
|
||||
- "{{ murmur_base_path }}:{{ murmur_base_path }}"
|
||||
become: true
|
||||
- name: Copy config at the right location
|
||||
template:
|
||||
src: murmur-config.ini
|
||||
dest: "{{ murmur_config_path }}"
|
||||
owner: "{{ murmur_user.name }}"
|
||||
group: "{{ murmur_user.group }}"
|
||||
mode: '0644'
|
||||
become: true
|
||||
|
||||
- name: Install murmur with docker
|
||||
docker_container:
|
||||
name: "{{ murmur_docker_name }}"
|
||||
image: "{{ murmur_docker_image }}"
|
||||
ports: "{{ murmur_docker_ports }}"
|
||||
labels: "{{ murmur_docker_labels }}"
|
||||
restart_policy: unless-stopped
|
||||
recreate: true
|
||||
pull: true
|
||||
entrypoint:
|
||||
- "/usr/bin/murmurd"
|
||||
- "-fg"
|
||||
- "-v"
|
||||
- "-ini {{ murmur_config_path }}"
|
||||
# - "-supw testtest"
|
||||
user: "{{ murmur_user.uid }}:{{ murmur_user.group }}"
|
||||
volumes:
|
||||
- "{{ murmur_base_path }}:{{ murmur_base_path }}"
|
||||
become: true
|
||||
|
|
|
@ -4,10 +4,10 @@ murmur_group_name: murmur
|
|||
murmur_docker_name: murmur
|
||||
murmur_docker_image: "registry.gitlab.com/famedly/containers/murmur:{{ murmur_version }}"
|
||||
murmur_config_path: "{{ murmur_base_path }}/murmur-config.ini"
|
||||
murmur_db_path: " {{murmur_base_path }}/murmur.sqlite"
|
||||
murmur_logfile_path: "{{murmur_base_path}}/murmur.log"
|
||||
murmur_db_path: " {{ murmur_base_path }}/murmur.sqlite"
|
||||
murmur_logfile_path: "{{ murmur_base_path }}/murmur.log"
|
||||
murmur_config:
|
||||
- welcometext: "Welcome to Murmur"
|
||||
- serverpassword:
|
||||
- serverpassword:
|
||||
- bandwidth: 72000
|
||||
- users: 100 //maxusers
|
||||
|
|
Loading…
Reference in a new issue