Files
ansible/oldstuff/tasks/grab-config.yaml
2023-08-17 23:08:37 +02:00

19 lines
530 B
YAML

---
- 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}}