2012-03-18 22:29:11 +00:00
|
|
|
# extremely simple test of the most basic of playbook engine/functions
|
|
|
|
---
|
|
|
|
- hosts: all
|
|
|
|
vars:
|
2012-03-18 22:50:25 +00:00
|
|
|
answer: "???"
|
2012-03-18 22:29:11 +00:00
|
|
|
port: 5150
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
- name: test basic success command
|
|
|
|
action: command /bin/true
|
|
|
|
|
|
|
|
- name: test basic success command 2
|
|
|
|
action: command /bin/true
|
|
|
|
|
|
|
|
- name: test basic shell
|
2012-03-18 22:50:25 +00:00
|
|
|
action: shell echo $HOME
|
2012-03-18 22:29:11 +00:00
|
|
|
|
|
|
|
- name: test copy
|
2012-03-18 22:50:25 +00:00
|
|
|
action: copy src=sample.j2 dest=/tmp/ansible_test_data_copy.out
|
2012-03-18 22:29:11 +00:00
|
|
|
|
|
|
|
- name: test template
|
2012-03-18 22:50:25 +00:00
|
|
|
action: template src=sample.j2 dest=/tmp/ansible_test_data_template.out
|
2012-03-18 22:29:11 +00:00
|
|
|
|
|
|
|
handlers:
|
|
|
|
|
|
|
|
- name: on change 1
|
|
|
|
action: command /bin/true
|
|
|
|
- name: on change 2
|
|
|
|
action: command /bin/true
|
|
|
|
- action: on change 3
|
|
|
|
action: command /bin/true
|
|
|
|
|
|
|
|
|