mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-02 20:24:23 -07:00
Add yum latest to docs and examples
This commit is contained in:
parent
3f834cfe3e
commit
cf4ac3b6b2
2 changed files with 3 additions and 3 deletions
|
@ -200,7 +200,7 @@ Will install, upgrade, remove, and list packages with the yum package manager.
|
||||||
|
|
||||||
*state*:
|
*state*:
|
||||||
|
|
||||||
* Can be either 'installed' or 'removed'
|
* Can be either 'installed', 'latest', or 'removed'
|
||||||
|
|
||||||
*list*:
|
*list*:
|
||||||
|
|
||||||
|
|
|
@ -42,8 +42,8 @@ server group, then more commands back on the webservers group, etc::
|
||||||
user: root
|
user: root
|
||||||
tasks:
|
tasks:
|
||||||
- include: base.yml somevar=3 othervar=4
|
- include: base.yml somevar=3 othervar=4
|
||||||
- name: ensure apache is installed
|
- name: ensure apache is at the latest version
|
||||||
action: yum pkg=httpd state=installed
|
action: yum pkg=httpd state=latest
|
||||||
- name: write the apache config file
|
- name: write the apache config file
|
||||||
action: template src=/srv/httpd.j2 dest=/etc/httpd.conf
|
action: template src=/srv/httpd.j2 dest=/etc/httpd.conf
|
||||||
notify:
|
notify:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue