-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ansible): add initial ansible setup
- Loading branch information
Showing
11 changed files
with
951 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[defaults] | ||
# Inventory location | ||
inventory = inventory.yml | ||
# Location for roles | ||
roles_path = ./roles | ||
# Location for collections | ||
collections_path = ./collections | ||
# Localtion for plugins & modules | ||
library = ./library | ||
# Console log settings | ||
display_skipped_hosts = false | ||
# Use the YAML callback plugin. | ||
stdout_callback = community.general.yaml | ||
# Use the stdout_callback when running ad-hoc commands. | ||
bin_ansible_callbacks = True | ||
# Callback plugins | ||
callbacks_enabled = ansible.posix.profile_tasks | ||
# Skip SSH host key checking | ||
host_key_checking = False | ||
# Disable cowsay | ||
nocows = 1 | ||
|
||
# Galaxy - Private Automation Hub Settings | ||
[galaxy] | ||
server_list = galaxy | ||
|
||
[galaxy_server.galaxy] | ||
url=https://galaxy.ansible.com |
Empty file.
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
ansible_python_interpreter: "{{ ansible_playbook_python }}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ansible_connection: ansible.netcommon.httpapi | ||
ansible_network_os: cisco.nxos.nxos | ||
ansible_user: "{{ lookup('ansible.builtin.env', 'NXOS_USER', default='admin') }}" | ||
ansible_password: "{{ lookup('ansible.builtin.env', 'NXOS_PASSWORD') }}" | ||
ansible_httpapi_use_ssl: true | ||
ansible_httpapi_validate_certs: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
ansible_connection: local |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
all: | ||
hosts: | ||
localhost: | ||
children: | ||
nxos: | ||
hosts: | ||
sbx-nxos: | ||
ansible_host: sbx-nxos-mgmt.cisco.com |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[tool.poetry] | ||
name = "ansible-nxos" | ||
version = "0.1.0" | ||
description = "NXOS configuration with ansible" | ||
authors = ["Stephan Lüscher <[email protected]>"] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.11" | ||
ansible-core = "^2.16" | ||
jmespath = "^1.0" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
ansible-lint = { version = "^24.2", markers = 'platform_system != "Windows"' } # https://github.com/ansible/ansible-lint/issues/2730#issuecomment-1330406601 | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
collections: | ||
- name: ansible.posix | ||
version: 1.5.4 | ||
- name: community.general | ||
version: 8.6.0 | ||
- name: cisco.nxos | ||
version: 8.0.0 | ||
- name: ansible.netcommon | ||
version: 6.1.1 |
Empty file.