mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-26 20:34:32 +03:00
set -e - again
This commit is contained in:
parent
68eae69fb5
commit
ceac9628c2
@ -104,7 +104,7 @@ This example-playbook would execute (on all hosts defined in the inventory) two
|
||||
* `shell` that execute three commands and return the output to our terminal
|
||||
|
||||
```yml
|
||||
hosts: all
|
||||
- hosts: all
|
||||
|
||||
tasks:
|
||||
- name: "ping all"
|
||||
@ -152,7 +152,7 @@ Role can be included in your playbook (executed via your playbook).
|
||||
|
||||
|
||||
```yml
|
||||
hosts: all
|
||||
- hosts: all
|
||||
|
||||
tasks:
|
||||
- name: "ping all"
|
||||
@ -160,7 +160,7 @@ tasks:
|
||||
- name: "execute a shell command"
|
||||
shell: "date; whoami; df -h;"
|
||||
|
||||
role:
|
||||
roles:
|
||||
- some_role
|
||||
- { role: another_role, some_variable: 'learnxiny', tags: ['my_tag'] }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user