novos: add playbooks
This commit is contained in:
parent
df7341cf3a
commit
bb3782b172
2 changed files with 38 additions and 0 deletions
0
apps/novos/files/novos_config.json.j2
Normal file
0
apps/novos/files/novos_config.json.j2
Normal file
38
apps/novos/init.ansible.yml
Normal file
38
apps/novos/init.ansible.yml
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
- hosts: localhost
|
||||||
|
vars_files:
|
||||||
|
- ../../map.yml
|
||||||
|
tasks:
|
||||||
|
- name: Create novos app-dir
|
||||||
|
file:
|
||||||
|
state: directory
|
||||||
|
path: "{{ app_dir }}/novos"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "0755"
|
||||||
|
- name: Clone novos git-repo
|
||||||
|
git:
|
||||||
|
repo: https://git.noveria.org/Tools/novos.git
|
||||||
|
dest: "{{ app_dir }}/novos"
|
||||||
|
force: true
|
||||||
|
- name: Symlink novos
|
||||||
|
file:
|
||||||
|
state: link
|
||||||
|
src: "{{ app_dir }}/novos/novos"
|
||||||
|
dest: "{{ bin_dir }}/novos"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "0755"
|
||||||
|
- name: novos etc dir
|
||||||
|
file:
|
||||||
|
state: directory
|
||||||
|
path: "{{ etc_dir }}/novos"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "0755"
|
||||||
|
- name: Populate novos config
|
||||||
|
template:
|
||||||
|
src: files/novos_config.json.j2
|
||||||
|
dest: "{{ etc_dir }}/novos/novos.json"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "0644"
|
Loading…
Reference in a new issue