first commit
This commit is contained in:
23
roles/windows_clean-printer-export/tasks/main.yml
Normal file
23
roles/windows_clean-printer-export/tasks/main.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
# tasks file for windows_clean-printer-export
|
||||
- name: clean all services
|
||||
win_nssm:
|
||||
name: printer-export-{{item}}
|
||||
state: absent
|
||||
loop: "{{printers}}"
|
||||
|
||||
- name: clean all log files
|
||||
ansible.windows.win_file:
|
||||
path: F:\{{item}}.txt
|
||||
state: absent
|
||||
loop: "{{printers}}"
|
||||
- name: clean error files
|
||||
ansible.windows.win_file:
|
||||
path: F:\{{item}}-err.txt
|
||||
state: absent
|
||||
loop: "{{printers}}"
|
||||
|
||||
- debug:
|
||||
msg: "{{ '%Y%m%d' | strftime( ( ansible_date_time.epoch | int ) - ( 86400 ) ) }}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user