Skip to content

Commit

Permalink
strated ansible doc
Browse files Browse the repository at this point in the history
  • Loading branch information
BhattacharjeeSutapa committed Mar 14, 2024
1 parent 1f8844b commit bc5f414
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docs/docsite/rst/command_guide/cheatsheet.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,33 @@ Installing roles
ansible-galaxy role list
See :ref:`ansible-galaxy` for detailed documentation.


ansible doc
===========

.. code-block:: bash
options:

- `F` list_files - show plugin names and their source files without summaries

```
ansible-doc -F
add_host /usr/lib/python3/dist-packages/ansible/modules/add_host.py
amazon.aws.aws_az_facts /usr/lib/python3/dist-packages/ansible_collections/amazon/aws/plugins/modules/aws_az_f>
amazon.aws.aws_az_info /usr/lib/python3/dist-packages/ansible_collections/amazon/aws/plugins/modules/aws_az_i>
amazon.aws.aws_caller_facts /usr/lib/python3/dist-packages/ansible_collections/amazon/aws/plugins/modules/aws_call>
..#
```

- `l` list List available plugins.

```
ansible-doc -l
add_host Add a host (and alternatively a group) to the ansible-playbook in-memory inventory
amazon.aws.aws_az_facts Gather information about availability zones in AWS
amazon.aws.aws_az_info Gather information about availability zones in AWS
amazon.aws.aws_caller_facts Get information about the user and account being used to make AWS calls
..#
```

0 comments on commit bc5f414

Please sign in to comment.