Skip to content

Instantly share code, notes, and snippets.

@oinopion
Created February 17, 2013 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oinopion/4972703 to your computer and use it in GitHub Desktop.
Save oinopion/4972703 to your computer and use it in GitHub Desktop.
TASK: [aasdfasds] *********************
ok: [192.168.60.2] => {"msg": "$home/13-02-17--19-36-28"}
TASK: [pause seconds=2] *********************
(^C-c = continue early, ^C-a = abort)
[192.168.60.2]
Pausing for 2 seconds
ok: [192.168.60.2] => {"changed": false, "delta": 2, "rc": 0, "start": "2013-02-17 19:36:28.635563", "stderr": "", "stdout": "Paused for 2.0 seconds", "stop": "2013-02-17 19:36:30.635935"}
TASK: [aasdfasd] *********************
ok: [192.168.60.2] => {"msg": "$home/13-02-17--19-36-30"}
PLAY RECAP *********************
192.168.60.2 : ok=3 changed=0 unreachable=0 failed=0
TASK: [debug msg=$home/13-02-17--19-37-07] *********************
ok: [192.168.60.2] => {"msg": "$home/13-02-17--19-37-07"}
TASK: [pause seconds=2] *********************
(^C-c = continue early, ^C-a = abort)
[192.168.60.2]
Pausing for 2 seconds
ok: [192.168.60.2] => {"changed": false, "delta": 2, "rc": 0, "start": "2013-02-17 19:37:07.555456", "stderr": "", "stdout": "Paused for 2.0 seconds", "stop": "2013-02-17 19:37:09.556813"}
TASK: [debug msg=$home/13-02-17--19-37-07] *********************
ok: [192.168.60.2] => {"msg": "$home/13-02-17--19-37-07"}
---
- hosts: all
user: root
gather_facts: no
vars:
date: $PIPE_ONCE(date +%y-%m-%d--%H-%M-%S)
release_dir: $home/$date
tasks:
- debug: msg=$release_dir
name: aasdfasds
- pause: seconds=2
- debug: msg=$release_dir
name: aasdfasd
---
- hosts: all
user: root
gather_facts: no
vars:
date: $PIPE_ONCE(date +%y-%m-%d--%H-%M-%S)
release_dir: $home/$date
tasks:
- debug: msg=$release_dir
- pause: seconds=2
- debug: msg=$release_dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment