Open bsyingst83 opened 4 months ago
Just to weigh in here, I tried setting a motd banner using dellemc.os10.os10_config
using the playbook below, but that eventually times out, probably because the first config line is somewhat interactive:
# configure-motd.yml
---
- name: Configure MOTD banner
hosts: l3_switches
tasks:
- name: Gather OS10 facts
dellemc.os10.os10_facts:
gather_subset:
- config
register: os10_facts
- name: Set motd banner
dellemc.os10.os10_config:
lines:
- banner motd %
- "{{ inventory_hostname }} - {{ os10_facts.ansible_facts.ansible_net_model }}"
- "WARNING: This system configuration is managed by Ansible, do not edit by hand!"
- "%"
So it seems like os10_config
isn't the way to go here, so I'd appreciate another way to do it.
SUMMARY
Unable to find documentation for configuring a multi-line banner using dellemc.os10
ISSUE TYPE
COMPONENT NAME
os10_config module, or maybe os10_copy_config role? There don't seem to be any roles that specifically configure a banner
ANSIBLE VERSION