mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-18 20:41:29 +02:00
add some lines
This commit is contained in:
@@ -57,14 +57,18 @@ Execution of a single module is called a `task`
|
|||||||
Example of a Task run in CLI:
|
Example of a Task run in CLI:
|
||||||
###### Run a ansible module
|
###### Run a ansible module
|
||||||
|
|
||||||
|
```
|
||||||
ansible -m shell -a 'date; whoami'
|
ansible -m shell -a 'date; whoami'
|
||||||
|
```
|
||||||
|
|
||||||
as a contrast - please note a module `command` that allows to execute a single command only
|
as a contrast - please note a module `command` that allows to execute a single command only
|
||||||
|
|
||||||
|
```
|
||||||
ansible -m command -a 'date; whoami' # FAILURE
|
ansible -m command -a 'date; whoami' # FAILURE
|
||||||
|
|
||||||
ansible -m command -a 'date'
|
ansible -m command -a 'date'
|
||||||
ansible -m command -a 'whoami'
|
ansible -m command -a 'whoami'
|
||||||
|
```
|
||||||
|
|
||||||
##### Playbook
|
##### Playbook
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user