38 lines
993 B
YAML
38 lines
993 B
YAML
- name: "copy certstore rpm to destination"
|
|
synchronize:
|
|
src: "{{ role_path }}/files/"
|
|
dest: "/tmp/ansible_deploy/"
|
|
|
|
- name: Ensures /opt/tsg exists
|
|
file: path=/opt/tsg state=directory
|
|
tags: mkdir
|
|
|
|
- name: install certstore
|
|
yum:
|
|
name:
|
|
- /tmp/ansible_deploy/certstore-2.1.4.20201030.9f2d64e-1.el7.x86_64.rpm
|
|
state: present
|
|
|
|
- name: template certstore configure file
|
|
template:
|
|
src: "{{ role_path }}/templates/cert_store.ini.j2"
|
|
dest: /opt/tsg/certstore/conf/cert_store.ini
|
|
|
|
- name: template certstore zlog file
|
|
template:
|
|
src: "{{ role_path }}/templates/zlog.conf.j2"
|
|
dest: /opt/tsg/certstore/conf/zlog.conf
|
|
|
|
- name: "copy memory limit file to certstore.service.d"
|
|
copy:
|
|
src: "{{ role_path }}/files/memory.conf"
|
|
dest: /etc/systemd/system/certstore.service.d/
|
|
mode: 0644
|
|
|
|
- name: "start certstore"
|
|
systemd:
|
|
name: certstore.service
|
|
state: started
|
|
enabled: yes
|
|
daemon_reload: yes
|