mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #12835 from zarnovican/remove_yum_pkg
DOC: in yum examples, 'pkg' arg renamed to 'name'
This commit is contained in:
commit
02c8b13cc6
2 changed files with 4 additions and 4 deletions
|
@ -205,7 +205,7 @@ Below is an example tasks file that explains how a role works. Our common role
|
|||
# file: roles/common/tasks/main.yml
|
||||
|
||||
- name: be sure ntp is installed
|
||||
yum: pkg=ntp state=installed
|
||||
yum: name=ntp state=installed
|
||||
tags: ntp
|
||||
|
||||
- name: be sure ntp is configured
|
||||
|
|
|
@ -62,7 +62,7 @@ For starters, here's a playbook that contains just one play::
|
|||
remote_user: root
|
||||
tasks:
|
||||
- name: ensure apache is at the latest version
|
||||
yum: pkg=httpd state=latest
|
||||
yum: name=httpd state=latest
|
||||
- name: write the apache config file
|
||||
template: src=/srv/httpd.j2 dest=/etc/httpd.conf
|
||||
notify:
|
||||
|
@ -88,7 +88,7 @@ YAML dictionaries to supply the modules with their ``key=value`` arguments.::
|
|||
tasks:
|
||||
- name: ensure apache is at the latest version
|
||||
yum:
|
||||
pkg: httpd
|
||||
name: httpd
|
||||
state: latest
|
||||
- name: write the apache config file
|
||||
template:
|
||||
|
@ -115,7 +115,7 @@ the web servers, and then the database servers. For example::
|
|||
|
||||
tasks:
|
||||
- name: ensure apache is at the latest version
|
||||
yum: pkg=httpd state=latest
|
||||
yum: name=httpd state=latest
|
||||
- name: write the apache config file
|
||||
template: src=/srv/httpd.j2 dest=/etc/httpd.conf
|
||||
|
||||
|
|
Loading…
Reference in a new issue