--- - name: "copy tfe program to destination server" copy: src: "{{ role_path }}/files/" dest: /tmp/ansible_deploy/ - name: "install tfe rpms" yum: name: "{{ packages }}" state: present vars: packages: - /tmp/ansible_deploy/tfe-debug-4.0.0.1a59abc-1.el7.x86_64.rpm - name: "template the tfe.conf" template: src: "{{ role_path }}/templates/tfe.conf.j2" dest: /home/tsg/tfe/conf/tfe/tfe.conf - name: "template the pangu_pxy.conf" template: src: "{{ role_path }}/templates/pangu_pxy.conf.j2" dest: /home/tsg/tfe/conf/pangu/pangu_pxy.conf