Skip to content

Instantly share code, notes, and snippets.

@oinopion
Last active December 13, 2015 20:38
Show Gist options
  • Select an option

  • Save oinopion/4971667 to your computer and use it in GitHub Desktop.

Select an option

Save oinopion/4971667 to your computer and use it in GitHub Desktop.

Revisions

  1. oinopion revised this gist Feb 17, 2013. 2 changed files with 5 additions and 5 deletions.
    4 changes: 2 additions & 2 deletions output
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    TASK: [debug msg="13-02-17--15-18-37"] *********************
    TASK: [debug msg="/home/$user/13-02-17--15-23-58"] *********************
    ok: [192.168.60.2]

    TASK: [pause seconds=5] *********************
    @@ -7,5 +7,5 @@ TASK: [pause seconds=5] *********************
    Pausing for 5 seconds
    ok: [192.168.60.2]

    TASK: [debug msg="13-02-17--15-18-43"] *********************
    TASK: [debug msg="/home/$user/13-02-17--15-24-04"] *********************
    ok: [192.168.60.2]
    6 changes: 3 additions & 3 deletions test.yml
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,13 @@
    ---
    - hosts: all
    user: user
    user: pipeye
    gather_facts: no

    vars:
    date: $LOOKUP(pipe,date +%y-%m-%d--%H-%M-%S)
    release_dir: /home/$user/$date

    tasks:
    - debug: msg="$date"
    - debug: msg="$release_dir"
    - pause: seconds=5
    - debug: msg="$date"
    - debug: msg="$release_dir"
  2. oinopion created this gist Feb 17, 2013.
    11 changes: 11 additions & 0 deletions output
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    TASK: [debug msg="13-02-17--15-18-37"] *********************
    ok: [192.168.60.2]

    TASK: [pause seconds=5] *********************
    (^C-c = continue early, ^C-a = abort)
    [192.168.60.2]
    Pausing for 5 seconds
    ok: [192.168.60.2]

    TASK: [debug msg="13-02-17--15-18-43"] *********************
    ok: [192.168.60.2]
    13 changes: 13 additions & 0 deletions test.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    ---
    - hosts: all
    user: user
    gather_facts: no

    vars:
    date: $LOOKUP(pipe,date +%y-%m-%d--%H-%M-%S)
    release_dir: /home/$user/$date

    tasks:
    - debug: msg="$date"
    - pause: seconds=5
    - debug: msg="$date"