mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Add another example for a module.run state.
ZD#1162
This commit is contained in:
parent
2fdbe6f856
commit
c557d76fe7
@ -91,6 +91,23 @@ arguments. For example:
|
||||
delvol_on_destroy: 'True'
|
||||
}
|
||||
|
||||
Another example that creates a recurring task that runs a batch on a Windows
|
||||
system:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
eventsviewer:
|
||||
module.run:
|
||||
- name: task.create_task
|
||||
- m_name: 'events-viewer'
|
||||
- user_name: System
|
||||
- kwargs: {
|
||||
action_type: 'Execute',
|
||||
cmd: 'c:\netops\scripts\events_viewer.bat',
|
||||
trigger_type: 'Daily',
|
||||
start_date: '2017-1-20',
|
||||
start_time: '11:59PM'
|
||||
}
|
||||
'''
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user