- name: "copy tsg_master rpm to destination server" copy: src: "{{ role_path }}/files/" dest: /tmp/ansible_deploy/ - name: "install tsg_master from localhost" yum: name: - /tmp/ansible_deploy/tsg_master-debug-1.0.3.a4e2a7c-1.el7.centos.x86_64.rpm state: present