From f81e2580434db1926537ba94885f00ce9fefe375 Mon Sep 17 00:00:00 2001 From: vista- Date: Wed, 1 Aug 2018 21:32:57 +0200 Subject: [PATCH] NCLU - Add example: Changing the hostname and committing on Cumulus Linux (#42872) * Add example to change the hostname and commit on Cumulus Linux * Modify phrasing a bit --- lib/ansible/modules/network/cumulus/nclu.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/ansible/modules/network/cumulus/nclu.py b/lib/ansible/modules/network/cumulus/nclu.py index 0aa5f0d92c4..d0f422708fa 100644 --- a/lib/ansible/modules/network/cumulus/nclu.py +++ b/lib/ansible/modules/network/cumulus/nclu.py @@ -64,6 +64,12 @@ EXAMPLES = ''' - add int swp1 - add int swp2 +- name: Modify hostname to Cumulus-1 and commit the change + nclu: + commands: + - add hostname Cumulus-1 + commit: true + - name: Add 48 interfaces and commit the change. nclu: template: |