mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Use native YAML (#3439)
This commit is contained in:
committed by
Matt Clay
parent
0a338a11c2
commit
be834293ed
@@ -89,15 +89,22 @@ author: Doug Luce
|
||||
EXAMPLES = '''
|
||||
# Ensure a variable exists.
|
||||
# Creates an entry like "EMAIL=doug@ansibmod.con.com"
|
||||
- cronvar: name="EMAIL" value="doug@ansibmod.con.com"
|
||||
- cronvar:
|
||||
name: EMAIL
|
||||
value: doug@ansibmod.con.com
|
||||
|
||||
# Make sure a variable is gone. This will remove any variable named
|
||||
# "LEGACY"
|
||||
- cronvar: name="LEGACY" state=absent
|
||||
- cronvar:
|
||||
name: LEGACY
|
||||
state: absent
|
||||
|
||||
# Adds a variable to a file under /etc/cron.d
|
||||
- cronvar: name="LOGFILE" value="/var/log/yum-autoupdate.log"
|
||||
user="root" cron_file=ansible_yum-autoupdate
|
||||
- cronvar:
|
||||
name: LOGFILE
|
||||
value: /var/log/yum-autoupdate.log
|
||||
user: root
|
||||
cron_file: ansible_yum-autoupdate
|
||||
'''
|
||||
|
||||
import os
|
||||
|
||||
Reference in New Issue
Block a user