parent
73141d5035
commit
1a91b797bd
4 changed files with 19 additions and 19 deletions
|
@ -62,7 +62,7 @@ following::
|
|||
- name: 'YUM - async task'
|
||||
yum:
|
||||
name: docker-io
|
||||
state: installed
|
||||
state: present
|
||||
async: 1000
|
||||
poll: 0
|
||||
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
|
||||
yum:
|
||||
name: ntp
|
||||
state: installed
|
||||
state: present
|
||||
tags: ntp
|
||||
|
||||
- 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
|
||||
yum:
|
||||
name: "{{ item }}"
|
||||
state: installed
|
||||
state: present
|
||||
loop:
|
||||
- httpd
|
||||
- memcached
|
||||
|
|
|
@ -17,7 +17,7 @@ that tags two tasks with different tags::
|
|||
tasks:
|
||||
- yum:
|
||||
name: "{{ item }}"
|
||||
state: installed
|
||||
state: present
|
||||
loop:
|
||||
- httpd
|
||||
- memcached
|
||||
|
@ -55,7 +55,7 @@ This example tags several tasks with one tag, "ntp"::
|
|||
- name: be sure ntp is installed
|
||||
yum:
|
||||
name: ntp
|
||||
state: installed
|
||||
state: present
|
||||
tags: ntp
|
||||
|
||||
- name: be sure ntp is configured
|
||||
|
|
Loading…
Reference in a new issue