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

32 lines
780 B
YAML
Raw Normal View History

- name: "copy certstore rpm to destination"
synchronize:
src: "{{ role_path }}/files/"
dest: "/tmp/ansible_deploy/"
2020-09-21 18:33:10 +08:00
- name: Ensures /opt/tsg exists
file: path=/opt/tsg state=directory
2019-09-03 21:04:43 +08:00
tags: mkdir
2019-09-03 21:04:43 +08:00
- name: install certstore
yum:
name:
2020-10-14 17:40:33 +08:00
- /tmp/ansible_deploy/certstore-2.1.2.20200923.a36312c-1.el7.x86_64.rpm
state: present
2019-09-03 21:04:43 +08:00
- name: template certstore configure file
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
2020-10-14 17:58:58 +08:00
- name: template certstore zlog file
template:
src: "{{ role_path }}/templates/zlog.conf.j2"
dest: /opt/tsg/certstore/conf/zlog.conf
- name: "start certstore"
systemd:
name: certstore.service
state: started
enabled: yes
daemon_reload: yes