From 6c16ab6ca8398bc20b00b25a253f16a9cfc4f210 Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Wed, 12 Oct 2016 18:00:10 -0400 Subject: [PATCH] Change example syntax on package module --- lib/ansible/modules/packaging/os/package.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/packaging/os/package.py b/lib/ansible/modules/packaging/os/package.py index 2ae7c7fbc8e..d40ed3d4eee 100644 --- a/lib/ansible/modules/packaging/os/package.py +++ b/lib/ansible/modules/packaging/os/package.py @@ -53,9 +53,13 @@ notes: ''' EXAMPLES = ''' - name: install the latest version of ntpdate - package: name=ntpdate state=latest + package: + name: ntpdate + state: latest # This uses a variable as this changes per distribution. - name: remove the apache package - package: name={{apache}} state=absent + package: + name: "{{ apache }}" + state: absent '''