remove build errors including guess (#69711)

* remove build errors including guess

* fixed shippable errors
pull/69767/head
Sandra McCann 4 years ago committed by GitHub
parent f110bcd59e
commit 3a4e227efa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -101,5 +101,7 @@ Modules
.. py:module:: ansible.module_utils
.. py:module:: ansible.module_utils.basic
:noindex:
.. py:module:: ansible.module_utils.url

@ -373,7 +373,7 @@ Using the ``token`` argument
You can use the ``--token`` argument with the ``ansible-galaxy`` command (in conjunction with the ``--server`` argument or :ref:`GALAXY_SERVER` setting in your :file:`ansible.cfg` file). You cannot use ``apt-key`` with any servers defined in your :ref:`Galaxy server list <galaxy_server_config>`.
.. code-block:: bash
.. code-block:: text
ansible-galaxy collection publish ./geerlingguy-collection-1.2.3.tar.gz --token=<key goes here>

@ -263,7 +263,7 @@ Example: ``aci.post_config()``
Example code
""""""""""""
.. code-block:: guess
.. code-block:: text
if state == 'present':
aci.payload(
@ -295,7 +295,7 @@ When state is absent
^^^^^^^^^^^^^^^^^^^^
If the task sets the state to absent, then the ``delete_config()`` method is all that is needed. This method does not take any arguments, and handles check mode.
.. code-block:: guess
.. code-block:: text
elif state == 'absent':
aci.delete_config()
@ -305,7 +305,7 @@ Exiting the module
^^^^^^^^^^^^^^^^^^
To have the module exit, call the ACIModule method ``exit_json()``. This method automatically takes care of returning the common return values for you.
.. code-block:: guess
.. code-block:: text
aci.exit_json()

@ -211,7 +211,7 @@ If any of your custom modules use a custom module utility, once you migrate to a
When coding with ``module_utils`` in a collection, the Python import statement needs to take into account the :abbr:`FQCN (Fully Qualified Collection Name)` along with the ``ansible_collections`` convention. The resulting Python import looks similar to the following example:
.. code-block:: python
.. code-block:: text
from ansible_collections.{namespace}.{collectionname}.plugins.module_utils.{util} import {something}
@ -223,7 +223,7 @@ The following example code snippets show a Python and a PowerShell module using
In the Python example the ``module_utils`` is ``helper`` and the :abbr:`FQCN (Fully Qualified Collection Name)` is ``ansible_example.community.plugins.module_utils.helper``:
.. code-block:: python
.. code-block:: text
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils._text import to_text

@ -337,7 +337,7 @@ Module
* ``library/<ansible_network_os>_<resource>.py``.
* Imports the ``module_utils`` resource package and calls ``execute_module`` API
.. code-block:: python
.. code-block:: text
def main():
result = <resource_package>(module).execute_module()

@ -27,7 +27,7 @@ In Ansible 2.2 (and possibly earlier) the `async:` keyword could not be used in
**NEW** In Ansible 2.3:
.. code-block:: guess
.. code-block:: yaml
- name: Install nginx asynchronously
service:
@ -44,7 +44,7 @@ The `ansible_distribution_release` and `ansible_distribution_version` facts on O
**OLD** In Ansible 2.2 (and earlier)
.. code-block:: guess
.. code-block:: bash
"ansible_distribution": "OpenBSD"
"ansible_distribution_release": "6.0",
@ -53,7 +53,7 @@ The `ansible_distribution_release` and `ansible_distribution_version` facts on O
**NEW** In Ansible 2.3:
.. code-block:: guess
.. code-block:: bash
"ansible_distribution": "OpenBSD",
"ansible_distribution_release": "release",
@ -69,7 +69,7 @@ Blocks can now have names, this allows you to avoid the ugly `# this block is fo
**NEW** In Ansible 2.3:
.. code-block:: guess
.. code-block:: yaml
- name: Block test case
hosts: localhost
@ -185,7 +185,7 @@ Deprecation of top-level connection arguments
**OLD** In Ansible 2.2:
.. code-block:: guess
.. code-block:: yaml
- name: example of using top-level options for connection properties
ios_command:
@ -198,7 +198,7 @@ Deprecation of top-level connection arguments
Will result in:
.. code-block:: guess
.. code-block:: bash
[WARNING]: argument username has been deprecated and will be removed in a future version
[WARNING]: argument host has been deprecated and will be removed in a future version
@ -208,7 +208,7 @@ Will result in:
**NEW** In Ansible 2.3:
.. code-block:: guess
.. code-block:: yaml
- name: Gather facts
eos_facts:

Loading…
Cancel
Save