From 61054921cfbc4d87796c8293b1915b43723e53e5 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 8 Jun 2015 20:25:39 -0400 Subject: [PATCH] updated package examples --- lib/ansible/modules/packaging/os/package.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/ansible/modules/packaging/os/package.py b/lib/ansible/modules/packaging/os/package.py index 1a27470cbc8..7c94b98a941 100644 --- a/lib/ansible/modules/packaging/os/package.py +++ b/lib/ansible/modules/packaging/os/package.py @@ -42,9 +42,10 @@ notes: - This module actually calls the pertinent package modules for each system (apt, yum, etc). ''' EXAMPLES = ''' -- name: install the latest version of Vim - package: name=vim-minimal state=latest +- name: install the latest version of ntpdate + package: name=ntpdate state=latest -- name: remove the Vim package - package : name=vim-minimal state=absent +# This uses a variable as this changes per distribution. +- name: remove the apache package + package : name={{apache}} state=absent '''