|
|
@ -25,7 +25,7 @@ description:
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
name:
|
|
|
|
name:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- A package name , or package specifier with version, like C(name-1.0).
|
|
|
|
- A package name or package specifier with version, like C(name-1.0).
|
|
|
|
- If a previous version is specified, the task also needs to turn C(allow_downgrade) on.
|
|
|
|
- If a previous version is specified, the task also needs to turn C(allow_downgrade) on.
|
|
|
|
See the C(allow_downgrade) documentation for caveats with downgrading packages.
|
|
|
|
See the C(allow_downgrade) documentation for caveats with downgrading packages.
|
|
|
|
- When using state=latest, this can be '*' which means run C(yum -y update).
|
|
|
|
- When using state=latest, this can be '*' which means run C(yum -y update).
|
|
|
@ -180,6 +180,14 @@ EXAMPLES = '''
|
|
|
|
name: httpd
|
|
|
|
name: httpd
|
|
|
|
state: latest
|
|
|
|
state: latest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: ensure a list of packages installed
|
|
|
|
|
|
|
|
yum:
|
|
|
|
|
|
|
|
name: "{{ packages }}"
|
|
|
|
|
|
|
|
vars:
|
|
|
|
|
|
|
|
packages:
|
|
|
|
|
|
|
|
- httpd
|
|
|
|
|
|
|
|
- httpd-tools
|
|
|
|
|
|
|
|
|
|
|
|
- name: remove the Apache package
|
|
|
|
- name: remove the Apache package
|
|
|
|
yum:
|
|
|
|
yum:
|
|
|
|
name: httpd
|
|
|
|
name: httpd
|
|
|
|