mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
(cherry picked from commit ddc989ec6d
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
c5ff49db56
commit
5a2e7f9b1b
38 changed files with 242 additions and 228 deletions
|
@ -39,7 +39,7 @@ options:
|
|||
description:
|
||||
- Whether to cast, dispel or rebuild a package
|
||||
- state C(cast) is an equivalent of C(present), not C(latest)
|
||||
- state C(latest) always triggers C(update_cache=yes)
|
||||
- state C(latest) always triggers C(update_cache=true)
|
||||
- state C(rebuild) implies cast of all specified spells, not only
|
||||
those existed before
|
||||
choices: ["present", "latest", "absent", "cast", "dispelled", "rebuild"]
|
||||
|
@ -61,13 +61,13 @@ options:
|
|||
description:
|
||||
- Whether or not to update sorcery scripts at the very first stage
|
||||
type: bool
|
||||
default: no
|
||||
default: false
|
||||
|
||||
update_cache:
|
||||
description:
|
||||
- Whether or not to update grimoire collection before casting spells
|
||||
type: bool
|
||||
default: no
|
||||
default: false
|
||||
aliases: ["update_codex"]
|
||||
|
||||
cache_valid_time:
|
||||
|
@ -132,17 +132,17 @@ EXAMPLES = '''
|
|||
community.general.sorcery:
|
||||
spell: '*'
|
||||
state: rebuild
|
||||
update: yes
|
||||
update_cache: yes
|
||||
update: true
|
||||
update_cache: true
|
||||
|
||||
- name: Refresh the grimoire collection if it is 1 day old using native sorcerous alias
|
||||
community.general.sorcery:
|
||||
update_codex: yes
|
||||
update_codex: true
|
||||
cache_valid_time: 86400
|
||||
|
||||
- name: Update only Sorcery itself
|
||||
community.general.sorcery:
|
||||
update: yes
|
||||
update: true
|
||||
'''
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue