mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add additional state to watch_any doc example
This commit is contained in:
parent
f7223a3bbf
commit
8cb97a48f5
1 changed files with 7 additions and 2 deletions
|
@ -410,12 +410,17 @@ exactly like the ``require`` requisite (the watching state will execute if
|
|||
service.running:
|
||||
- watch_any:
|
||||
- file: /etc/apache2/sites-available/site1.conf
|
||||
- file: apache2-site2
|
||||
file.managed:
|
||||
- name: /etc/apache2/sites-available/site1.conf
|
||||
- source: salt://apache2/files/site1.conf
|
||||
apache2-site2:
|
||||
file.managed:
|
||||
- name: /etc/apache2/sites-available/site2.conf
|
||||
- source: salt://apache2/files/site2.conf
|
||||
|
||||
In this example, the service will be reloaded/restarted if the
|
||||
file.managed state has a result of True and has changes.
|
||||
In this example, the service will be reloaded/restarted if either of the
|
||||
file.managed states has a result of True and has changes.
|
||||
|
||||
.. _requisites-prereq:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue