mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 11:10:21 -07:00
In the yum module example, use present/absent instead of installed/removed
This commit is contained in:
parent
375edbd087
commit
779c6cb7f8
1 changed files with 2 additions and 2 deletions
|
@ -107,10 +107,10 @@ EXAMPLES = '''
|
||||||
yum: name=httpd state=latest
|
yum: name=httpd state=latest
|
||||||
|
|
||||||
- name: remove the Apache package
|
- name: remove the Apache package
|
||||||
yum: name=httpd state=removed
|
yum: name=httpd state=absent
|
||||||
|
|
||||||
- name: install the latest version of Apache from the testing repo
|
- name: install the latest version of Apache from the testing repo
|
||||||
yum: name=httpd enablerepo=testing state=installed
|
yum: name=httpd enablerepo=testing state=present
|
||||||
|
|
||||||
- name: upgrade all packages
|
- name: upgrade all packages
|
||||||
yum: name=* state=latest
|
yum: name=* state=latest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue