summaryrefslogtreecommitdiff
path: root/bin/ansible-console
diff options
context:
space:
mode:
authorcos <cos>2024-04-20 10:08:13 +0200
committercos <cos>2024-04-20 10:12:35 +0200
commit9d0c7ef4dc8d7f3bea3ff70c977a87d154316a26 (patch)
tree7e3797bdd2403982f4a351608d9633c910aadc12 /bin/ansible-console
parentc224b4bf4a6538c3ddc5cb762367c0d53462fa12 (diff)
downloaddebian-ansible-core-upstream/second-failed-recreation-attempt.zip
Recreate upstream branch stateupstream/second-failed-recreation-attempt
Work around that version control is behind the actual package version in trixie. As is obvious from the lacking commits in the salsa repository and also visible on https://tracker.debian.org/pkg/ansible-core with the report from vcswatch stating: VCS repository is not up to date. This commit was generated using `gbp import-dsc`, which should hopefully have made it a squashed representation on the same set of changes on the uploader's unpushed git tree.
Diffstat (limited to 'bin/ansible-console')
-rwxr-xr-xbin/ansible-console38
1 files changed, 17 insertions, 21 deletions
diff --git a/bin/ansible-console b/bin/ansible-console
index 2325bf05..3125cc47 100755
--- a/bin/ansible-console
+++ b/bin/ansible-console
@@ -22,7 +22,7 @@ from ansible import constants as C
from ansible import context
from ansible.cli.arguments import option_helpers as opt_help
from ansible.executor.task_queue_manager import TaskQueueManager
-from ansible.module_utils.common.text.converters import to_native, to_text
+from ansible.module_utils._text import to_native, to_text
from ansible.module_utils.parsing.convert_bool import boolean
from ansible.parsing.splitter import parse_kv
from ansible.playbook.play import Play
@@ -39,30 +39,26 @@ class ConsoleCLI(CLI, cmd.Cmd):
'''
A REPL that allows for running ad-hoc tasks against a chosen inventory
from a nice shell with built-in tab completion (based on dominis'
- ``ansible-shell``).
+ ansible-shell).
It supports several commands, and you can modify its configuration at
runtime:
- - ``cd [pattern]``: change host/group
- (you can use host patterns eg.: ``app*.dc*:!app01*``)
- - ``list``: list available hosts in the current path
- - ``list groups``: list groups included in the current path
- - ``become``: toggle the become flag
- - ``!``: forces shell module instead of the ansible module
- (``!yum update -y``)
- - ``verbosity [num]``: set the verbosity level
- - ``forks [num]``: set the number of forks
- - ``become_user [user]``: set the become_user
- - ``remote_user [user]``: set the remote_user
- - ``become_method [method]``: set the privilege escalation method
- - ``check [bool]``: toggle check mode
- - ``diff [bool]``: toggle diff mode
- - ``timeout [integer]``: set the timeout of tasks in seconds
- (0 to disable)
- - ``help [command/module]``: display documentation for
- the command or module
- - ``exit``: exit ``ansible-console``
+ - `cd [pattern]`: change host/group (you can use host patterns eg.: app*.dc*:!app01*)
+ - `list`: list available hosts in the current path
+ - `list groups`: list groups included in the current path
+ - `become`: toggle the become flag
+ - `!`: forces shell module instead of the ansible module (!yum update -y)
+ - `verbosity [num]`: set the verbosity level
+ - `forks [num]`: set the number of forks
+ - `become_user [user]`: set the become_user
+ - `remote_user [user]`: set the remote_user
+ - `become_method [method]`: set the privilege escalation method
+ - `check [bool]`: toggle check mode
+ - `diff [bool]`: toggle diff mode
+ - `timeout [integer]`: set the timeout of tasks in seconds (0 to disable)
+ - `help [command/module]`: display documentation for the command or module
+ - `exit`: exit ansible-console
'''
name = 'ansible-console'