This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ANSIBLE_PIPELINING: | |
name: Connection pipelining | |
default: True | |
description: | |
- Pipelining, if supported by the connection plugin, reduces the number of network operations required to execute a module on the remote server, | |
by executing many Ansible modules without actual file transfer. | |
- This can result in a very significant performance improvement when enabled. | |
- "However this conflicts with privilege escalation (become). For example, when using 'sudo:' operations you must first | |
disable 'requiretty' in /etc/sudoers on all managed hosts, which is why it is disabled by default." | |
env: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ansible.plugins.action import ActionBase | |
class ActionModule(ActionBase): | |
def run(self, tmp=None, task_vars=None): | |
return {'failed': False} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: | |
children: | |
application: | |
hosts: | |
awsfrcqaapp02: | |
ansible_host: IP-X | |
awsfrcqaapp03: | |
ansible_host: IP-Y | |
database: | |
hosts: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- task: | |
remote_user: '{{item}}_admin' | |
loop: | |
- jeremy | |
- '{{ansible_user}}' | |
vars: | |
ansible_user: '{{ansible_user}}_admin' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: all | |
vars: | |
r_std: '{{regvar.get('stdout')|default('')}}' | |
tasks: | |
- command: .... | |
register: regvar | |
- assert: | |
that: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansible.netcommon.cisco_ios_config netconf device configuration | |
ansible.netcommon.cisco_ios_netconf_get Fetch configuration/state data from NETCONF enabled network devices | |
apt Manages apt-packages | |
apt_key Add or remove an apt key | |
apt_repository Add and remove APT repositories | |
assemble Assemble configuration files from fragments | |
assert |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
gather_facts: yes | |
roles: | |
- usersettings | |
- role: git | |
vars: | |
git_install_from_source: true | |
git_install_path: "/usr" | |
git_version: "2.26.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ansible.netcommon.cli_config": { | |
"doc": { | |
"author": "Trishna Guha (@trishnaguha)", | |
"description": [ | |
"This module provides platform agnostic way of pushing text based configuration to network devices over network_cli connection plugin." | |
], | |
"filename": "/home/bcoca/tmp/collections/ansible_collections/ansible/netcommon/plugins/modules/cli_config.py", | |
"module": "cli_config", | |
"notes": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"add_host": "Add a host (and alternatively a group) to the ansible-playbook in-memory inventory", | |
"alikins.collection_inspect.collection_inspect": "UNDOCUMENTED", | |
"alikins.collection_inspect.collection_inspect_no_module_utils": "UNDOCUMENTED", | |
"alikins.collection_inspect.get_collection_inspect": "UNDOCUMENTED", | |
"ansible.netcommon.cli_command": "Run a cli command on cli-based network devices", | |
"ansible.netcommon.cli_config": "Push text based configuration to network devices over network_cli", | |
"ansible.netcommon.net_banner": "Manage multiline banners on network devices", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0.08 KB | |
- hosts: targethost | |
gather_facts: false | |
tasks: | |
- name: Run uptime command | |
command: uptime | |
register: output |
NewerOlder