1、增加初始化运行环境配置文件的部署脚本
2、修改与运行环境相关的配置文件的template文件模板名字
This commit is contained in:
32
init_runtime/roles/certstore/tasks/main.yml
Normal file
32
init_runtime/roles/certstore/tasks/main.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
- name: "copy certstore rpm to destination"
|
||||
copy:
|
||||
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.6.20201215.f2e9ba7-1.el7.x86_64.rpm
|
||||
state: present
|
||||
|
||||
- name: template certstore configure file
|
||||
template:
|
||||
src: "{{ role_path }}/templates/cert_store.ini.j2.j2"
|
||||
dest: /opt/tsg/init_runtime/roles/certstore/templates/cert_store.ini.j2
|
||||
|
||||
- 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user