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