mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 21:30:22 -07:00
modules: fix examples to use FQCN (#644)
* modules: fix examples to use FQCN * fix * fix * fix
This commit is contained in:
parent
8b92e0454d
commit
41cfdda6a3
533 changed files with 2130 additions and 2130 deletions
|
@ -61,34 +61,34 @@ notes:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Start dnscache if not running
|
||||
nosh: name=dnscache state=started
|
||||
community.general.nosh: name=dnscache state=started
|
||||
|
||||
- name: Stop mpd, if running
|
||||
nosh: name=mpd state=stopped
|
||||
community.general.nosh: name=mpd state=stopped
|
||||
|
||||
- name: Restart unbound or start it if not already running
|
||||
nosh:
|
||||
community.general.nosh:
|
||||
name: unbound
|
||||
state: restarted
|
||||
|
||||
- name: Reload fail2ban or start it if not already running
|
||||
nosh:
|
||||
community.general.nosh:
|
||||
name: fail2ban
|
||||
state: reloaded
|
||||
|
||||
- name: Disable nsd
|
||||
nosh: name=nsd enabled=no
|
||||
community.general.nosh: name=nsd enabled=no
|
||||
|
||||
- name: For package installers, set nginx running state according to local enable settings, preset and reset
|
||||
nosh: name=nginx preset=True state=reset
|
||||
community.general.nosh: name=nginx preset=True state=reset
|
||||
|
||||
- name: Reboot the host if nosh is the system manager, would need a "wait_for*" task at least, not recommended as-is
|
||||
nosh: name=reboot state=started
|
||||
community.general.nosh: name=reboot state=started
|
||||
|
||||
- name: Using conditionals with the module facts
|
||||
tasks:
|
||||
- name: Obtain information on tinydns service
|
||||
nosh: name=tinydns
|
||||
community.general.nosh: name=tinydns
|
||||
register: result
|
||||
|
||||
- name: Fail if service not loaded
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue