2017-03-21 08:30:02 +01:00
|
|
|
- name: test playbook for ansible-pull
|
|
|
|
hosts: all
|
2018-05-11 19:59:54 +02:00
|
|
|
gather_facts: False
|
2017-03-21 08:30:02 +01:00
|
|
|
tasks:
|
|
|
|
- name: debug output
|
|
|
|
debug: msg="test task"
|
|
|
|
- name: check for correct inventory
|
|
|
|
debug: msg="testing for inventory content"
|
|
|
|
failed_when: "'testhost1.example.com' not in groups['all']"
|
|
|
|
- name: check for correct limit
|
|
|
|
debug: msg="testing for limit"
|
|
|
|
failed_when: "'testhost1.example.com' == inventory_hostname"
|
|
|
|
- name: final task, has to be reached for the test to succeed
|
|
|
|
debug: msg="MAGICKEYWORD"
|