This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
solutions-tsg-scripts/roles/certstore/tasks/main.yml

38 lines
956 B
YAML
Raw Normal View History

- name: "copy certstore rpm to destination"
synchronize:
src: "{{ role_path }}/files/"
dest: "/tmp/ansible_deploy/"
2021-01-31 22:43:40 +08:00
- name: Ensures /opt/tsg exists
2020-09-21 18:33:10 +08:00
file: path=/opt/tsg state=directory
2019-09-03 21:04:43 +08:00
tags: mkdir
2021-01-31 22:43:40 +08:00
- name: install certstore
yum:
name:
- /tmp/ansible_deploy/certstore-2.1.7.20210422.3f0c7ed-1.el7.x86_64.rpm
state: present
2019-09-03 21:04:43 +08:00
2021-01-31 22:43:40 +08:00
- name: template certstore configure file
2019-09-03 21:04:43 +08:00
template:
src: "{{ role_path }}/templates/cert_store.ini.j2"
2020-09-21 18:33:10 +08:00
dest: /opt/tsg/certstore/conf/cert_store.ini
2019-09-03 21:04:43 +08:00
2021-01-31 22:43:40 +08:00
- name: template certstore zlog file
2020-10-14 17:58:58 +08:00
template:
src: "{{ role_path }}/templates/zlog.conf.j2"
dest: /opt/tsg/certstore/conf/zlog.conf
2020-10-19 14:52:08 +08:00
- 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