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
zhangzhihan 05b56cb4ec update
2020-09-21 18:33:10 +08:00

27 lines
634 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.2.202009.87fcacf-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: "start certstore"
systemd:
name: certstore.service
state: started
enabled: yes
daemon_reload: yes