|
|
@ -32,7 +32,7 @@ options:
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
state:
|
|
|
|
state:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Whether to install (C(present), C(latest)), or remove (C(absent)) a package.
|
|
|
|
- Whether to install (C(present), or remove (C(absent)) a package. Other states depend on the underlying package module, i.e C(latest).
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
use:
|
|
|
|
use:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
@ -47,10 +47,10 @@ notes:
|
|
|
|
- For Windows targets, use the M(win_package) module instead.
|
|
|
|
- For Windows targets, use the M(win_package) module instead.
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
EXAMPLES = '''
|
|
|
|
EXAMPLES = '''
|
|
|
|
- name: install the latest version of ntpdate
|
|
|
|
- name: install ntpdate
|
|
|
|
package:
|
|
|
|
package:
|
|
|
|
name: ntpdate
|
|
|
|
name: ntpdate
|
|
|
|
state: latest
|
|
|
|
state: present
|
|
|
|
|
|
|
|
|
|
|
|
# This uses a variable as this changes per distribution.
|
|
|
|
# This uses a variable as this changes per distribution.
|
|
|
|
- name: remove the apache package
|
|
|
|
- name: remove the apache package
|
|
|
|