mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-29 08:01:24 -07:00
parent
73141d5035
commit
1a91b797bd
4 changed files with 19 additions and 19 deletions
|
@ -62,7 +62,7 @@ following::
|
||||||
- name: 'YUM - async task'
|
- name: 'YUM - async task'
|
||||||
yum:
|
yum:
|
||||||
name: docker-io
|
name: docker-io
|
||||||
state: installed
|
state: present
|
||||||
async: 1000
|
async: 1000
|
||||||
poll: 0
|
poll: 0
|
||||||
register: yum_sleeper
|
register: yum_sleeper
|
||||||
|
|
|
@ -254,7 +254,7 @@ Below is an example tasks file that explains how a role works. Our common role
|
||||||
- name: be sure ntp is installed
|
- name: be sure ntp is installed
|
||||||
yum:
|
yum:
|
||||||
name: ntp
|
name: ntp
|
||||||
state: installed
|
state: present
|
||||||
tags: ntp
|
tags: ntp
|
||||||
|
|
||||||
- name: be sure ntp is configured
|
- name: be sure ntp is configured
|
||||||
|
|
|
@ -14,7 +14,7 @@ Blocks allow for logical grouping of tasks and in play error handling. Most of w
|
||||||
- name: install httpd and memcached
|
- name: install httpd and memcached
|
||||||
yum:
|
yum:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: installed
|
state: present
|
||||||
loop:
|
loop:
|
||||||
- httpd
|
- httpd
|
||||||
- memcached
|
- memcached
|
||||||
|
|
|
@ -17,7 +17,7 @@ that tags two tasks with different tags::
|
||||||
tasks:
|
tasks:
|
||||||
- yum:
|
- yum:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: installed
|
state: present
|
||||||
loop:
|
loop:
|
||||||
- httpd
|
- httpd
|
||||||
- memcached
|
- memcached
|
||||||
|
@ -55,7 +55,7 @@ This example tags several tasks with one tag, "ntp"::
|
||||||
- name: be sure ntp is installed
|
- name: be sure ntp is installed
|
||||||
yum:
|
yum:
|
||||||
name: ntp
|
name: ntp
|
||||||
state: installed
|
state: present
|
||||||
tags: ntp
|
tags: ntp
|
||||||
|
|
||||||
- name: be sure ntp is configured
|
- name: be sure ntp is configured
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue