From 2eb1c48dfcc7cb17c477dc4d0d4bf99b27841f0d Mon Sep 17 00:00:00 2001 From: Sandra McCann Date: Wed, 5 Sep 2018 21:16:13 -0400 Subject: [PATCH] NCLU - Add example: Changing the hostname and committing on Cumulus Linux (#42872) (#45251) * Add example to change the hostname and commit on Cumulus Linux * Modify phrasing a bit (cherry picked from commit f81e2580434db1926537ba94885f00ce9fefe375) --- 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 4a995ca1ab3..ea3da16404a 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: |