Skip to content
This repository was archived by the owner on Jan 26, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,8 @@ Example Playbook
- 10,12
cl_snmp:
listening-address:
ip:
- 192.168.1.10
- 192.168.1.20
- 192.168.1.10
- 192.168.1.20
readonly-community:
my_rocommunity:
access: any
Expand Down
6 changes: 6 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,9 @@
tags:
- cumulus
- cumulus_vlan

- name: include raw
include_tasks: raw.yml
tags:
- cumulus
- cumulus_raw
21 changes: 21 additions & 0 deletions tasks/raw.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
# Apply raw non-recursive nclu net commands, for example "add time zone Etc/UTC"
# Useful to re-apply full config taken from "net show config command"

- name: Abort uncommit nclu modifications
nclu:
abort: true

- name: Raw commands
nclu:
commands:
- '{{ item }}'
with_items:
- '{{ cl_raw }}'
register: raw

- name: Commit
nclu:
commit: true
description: 'Ansible - raw commands'
#when: raw.changed