add notes to service_facts about accessing fact data (#41608)
* add notes to service_facts about accessing fact data Signed-off-by: Adam Miller <admiller@redhat.com> * remove unquoted : Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
parent
837c216587
commit
6a620a1ed9
1 changed files with 9 additions and 0 deletions
|
@ -22,6 +22,15 @@ description:
|
||||||
version_added: "2.5"
|
version_added: "2.5"
|
||||||
requirements: ["Any of the following supported init systems: systemd, sysv, upstart"]
|
requirements: ["Any of the following supported init systems: systemd, sysv, upstart"]
|
||||||
|
|
||||||
|
notes:
|
||||||
|
- When accessing the C(ansible_facts.services) facts collected by this module,
|
||||||
|
it is recommended to not use "dot notation" because services can have a C(-)
|
||||||
|
character in their name which would result in invalid "dot notation", such as
|
||||||
|
C(ansible_facts.services.zuul-gateway). It is instead recommended to
|
||||||
|
using the string value of the service name as the key in order to obtain
|
||||||
|
the fact data value like C(ansible_facts.services['zuul-gateway'])
|
||||||
|
|
||||||
|
|
||||||
author:
|
author:
|
||||||
- Matthew Jones
|
- Matthew Jones
|
||||||
- Adam Miller (@maxamillion)
|
- Adam Miller (@maxamillion)
|
||||||
|
|
Loading…
Reference in a new issue