--- #- name: set script # ansible.builtin.copy: # src: get_info.sh # dest: /root/tmp.sh # mode: 0700 - name: delete script ansible.builtin.file: path: /root/tmp.sh state: absent