- 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.6.20201215.f2e9ba7-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