mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
b15c8e9cb1
recieved vs expected so we can be notified if this test breaks, and also to add some more detailed playbooks that use includes & async, etc.
34 lines
698 B
YAML
34 lines
698 B
YAML
# extremely simple test of the most basic of playbook engine/functions
|
|
---
|
|
- hosts: all
|
|
vars:
|
|
answer: "???"
|
|
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
|
|
action: shell echo $HOME
|
|
|
|
- name: test copy
|
|
action: copy src=sample.j2 dest=/tmp/ansible_test_data_copy.out
|
|
|
|
- name: test template
|
|
action: template src=sample.j2 dest=/tmp/ansible_test_data_template.out
|
|
|
|
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
|
|
|
|
|