chore: use FQCN for module name
This commit is contained in:
parent
b213d8464e
commit
e66056f163
6 changed files with 17 additions and 15 deletions
|
@ -12,6 +12,7 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
|||
### Changed
|
||||
|
||||
- test: replace kitchen to molecule
|
||||
- chore: use FQCN for module name
|
||||
|
||||
### Removed
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- name: restart cerebro
|
||||
systemd:
|
||||
ansible.builtin.service:
|
||||
name: cerebro
|
||||
state: restarted
|
||||
|
|
|
@ -5,13 +5,13 @@ galaxy_info:
|
|||
company: Adrien Waksberg
|
||||
description: Install and configure cererbo
|
||||
license: Apache2
|
||||
min_ansible_version: 2.7
|
||||
min_ansible_version: 2.9
|
||||
|
||||
platforms:
|
||||
- name: Debian
|
||||
versions:
|
||||
- stretch
|
||||
- buster
|
||||
- bullseye
|
||||
|
||||
galaxy_tags:
|
||||
- dashboard
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
---
|
||||
- name: install dependencies
|
||||
package:
|
||||
name: default-jre
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- default-jre
|
||||
tags: cerebro
|
||||
|
||||
- name: create bin and config directories
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: '{{ item }}'
|
||||
owner: root
|
||||
group: root
|
||||
|
@ -17,12 +18,12 @@
|
|||
tags: cerebro
|
||||
|
||||
- name: create group
|
||||
group:
|
||||
ansible.builtin.group:
|
||||
name: '{{ cerebro_group }}'
|
||||
tags: cerebro
|
||||
|
||||
- name: create user
|
||||
user:
|
||||
ansible.builtin.user:
|
||||
name: '{{ cerebro_user }}'
|
||||
group: '{{ cerebro_group }}'
|
||||
home: '{{ cerebro_bin_dir }}'
|
||||
|
@ -30,7 +31,7 @@
|
|||
tags: cerebro
|
||||
|
||||
- name: create data directory
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: '{{ cerebro_data_dir }}'
|
||||
owner: root
|
||||
group: '{{ cerebro_group }}'
|
||||
|
@ -39,7 +40,7 @@
|
|||
tags: cerebro
|
||||
|
||||
- name: copy configurations
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: '{{ item }}.j2'
|
||||
dest: '{{ cerebro_config_dir }}/{{ item }}'
|
||||
owner: root
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
---
|
||||
- name: check the version installed
|
||||
stat:
|
||||
ansible.builtin.stat:
|
||||
path: '{{ cerebro_bin_dir }}/release'
|
||||
register: st
|
||||
tags: cerebro
|
||||
|
||||
- name: download archive
|
||||
unarchive:
|
||||
ansible.builtin.unarchive:
|
||||
src: '{{ cerebro_url }}'
|
||||
dest: '{{ cerebro_bin_dir }}'
|
||||
owner: root
|
||||
|
@ -16,7 +16,7 @@
|
|||
tags: cerebro
|
||||
|
||||
- name: enable new version
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
src: '{{ cerebro_bin_dir }}/cerebro-{{ cerebro_version }}'
|
||||
dest: '{{ cerebro_bin_dir }}/release'
|
||||
owner: root
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: copy service
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: cerebro.service.j2
|
||||
dest: /lib/systemd/system/cerebro.service
|
||||
owner: root
|
||||
|
@ -9,7 +9,7 @@
|
|||
tags: cerebro
|
||||
|
||||
- name: enable and start service
|
||||
systemd:
|
||||
ansible.builtin.systemd:
|
||||
name: cerebro
|
||||
state: started
|
||||
enabled: true
|
||||
|
|
Loading…
Reference in a new issue