mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Some more code-block fixes
This commit is contained in:
parent
7df31aaca1
commit
adb7426c0c
2 changed files with 146 additions and 144 deletions
|
@ -174,8 +174,9 @@ To see what information is available, try the following::
|
||||||
|
|
||||||
This will return a ginormous amount of variable data, which may look like this, as taken from Ansible 1.4 on a Ubuntu 12.04 system
|
This will return a ginormous amount of variable data, which may look like this, as taken from Ansible 1.4 on a Ubuntu 12.04 system
|
||||||
|
|
||||||
.. code-block: none
|
.. code-block: json
|
||||||
|
|
||||||
|
{
|
||||||
"ansible_all_ipv4_addresses": [
|
"ansible_all_ipv4_addresses": [
|
||||||
"REDACTED IP ADDRESS"
|
"REDACTED IP ADDRESS"
|
||||||
],
|
],
|
||||||
|
@ -392,9 +393,9 @@ This will return a ginormous amount of variable data, which may look like this,
|
||||||
"ansible_product_version": "None",
|
"ansible_product_version": "None",
|
||||||
"ansible_python_version": "2.7.3",
|
"ansible_python_version": "2.7.3",
|
||||||
"ansible_selinux": false,
|
"ansible_selinux": false,
|
||||||
"ansible_ssh_host_key_dsa_public": "REDACTED KEY VALUE"
|
"ansible_ssh_host_key_dsa_public": "REDACTED KEY VALUE",
|
||||||
"ansible_ssh_host_key_ecdsa_public": "REDACTED KEY VALUE"
|
"ansible_ssh_host_key_ecdsa_public": "REDACTED KEY VALUE",
|
||||||
"ansible_ssh_host_key_rsa_public": "REDACTED KEY VALUE"
|
"ansible_ssh_host_key_rsa_public": "REDACTED KEY VALUE",
|
||||||
"ansible_swapfree_mb": 665,
|
"ansible_swapfree_mb": 665,
|
||||||
"ansible_swaptotal_mb": 1021,
|
"ansible_swaptotal_mb": 1021,
|
||||||
"ansible_system": "Linux",
|
"ansible_system": "Linux",
|
||||||
|
@ -404,6 +405,7 @@ This will return a ginormous amount of variable data, which may look like this,
|
||||||
"ansible_userspace_bits": "64",
|
"ansible_userspace_bits": "64",
|
||||||
"ansible_virtualization_role": "guest",
|
"ansible_virtualization_role": "guest",
|
||||||
"ansible_virtualization_type": "VMware"
|
"ansible_virtualization_type": "VMware"
|
||||||
|
}
|
||||||
|
|
||||||
In the above the model of the first harddrive may be referenced in a template or playbook as::
|
In the above the model of the first harddrive may be referenced in a template or playbook as::
|
||||||
|
|
||||||
|
@ -658,7 +660,7 @@ Additionally, ``group_names`` is a list (array) of all the groups the current ho
|
||||||
|
|
||||||
|
|
||||||
``groups`` is a list of all the groups (and hosts) in the inventory. This can be used to enumerate all hosts within a group.
|
``groups`` is a list of all the groups (and hosts) in the inventory. This can be used to enumerate all hosts within a group.
|
||||||
For example
|
For example:
|
||||||
|
|
||||||
.. code-block:: jinja
|
.. code-block:: jinja
|
||||||
|
|
||||||
|
|
|
@ -232,7 +232,7 @@ Although Ansible 2.0 provides a new callback API the old one continues to work
|
||||||
for most callback plugins. However, if your callback plugin makes use of
|
for most callback plugins. However, if your callback plugin makes use of
|
||||||
:attr:`self.playbook`, :attr:`self.play`, or :attr:`self.task` then you will
|
:attr:`self.playbook`, :attr:`self.play`, or :attr:`self.task` then you will
|
||||||
have to store the values for these yourself as ansible no longer automatically
|
have to store the values for these yourself as ansible no longer automatically
|
||||||
populates the callback with them. Here's a short snippet that shows you how
|
populates the callback with them. Here's a short snippet that shows you how:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue