30 lines
731 B
YAML
30 lines
731 B
YAML
- name: "copy clotho rpm to destination server"
|
|
copy:
|
|
src: "{{ role_path }}/files/clotho-debug-1.0.0.-1.el7.x86_64.rpm"
|
|
dest: /tmp/ansible_deploy/
|
|
|
|
- name: "copy clotho.service to destination server"
|
|
copy:
|
|
src: "{{ role_path }}/files/clotho.service"
|
|
dest: /usr/lib/systemd/system
|
|
mode: 0755
|
|
|
|
- name: "install clotho rpm from localhost"
|
|
yum:
|
|
name:
|
|
- /tmp/ansible_deploy/clotho-debug-1.0.0.-1.el7.x86_64.rpm
|
|
state: present
|
|
|
|
- name: "Template the clotho.conf"
|
|
template:
|
|
src: "{{ role_path }}/templates/clotho.conf.j2"
|
|
dest: /home/mesasoft/clotho/conf/clotho.conf
|
|
tags: template
|
|
|
|
- name: "start clotho"
|
|
systemd:
|
|
name: clotho.service
|
|
enabled: yes
|
|
daemon_reload: yes
|
|
|