--- - name: Send notification message via Slack delegate_to: localhost community.general.slack: token: "{{ slack_token }}" msg: Grabbing config from {{ inventory_hostname }} - name: Prepare install target ansible.windows.win_file: path: D:\BackUp_Config state: directory - name: Copy grab_config.cmd win_copy: src: ~/ansible/install/grab_config.cmd dest: D:\BackUp_Config\grab_config.cmd - name: Run grab_config win_command: D:\BackUp_Config\grab_config.cmd {{epoch}}