mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
696 B
YAML
21 lines
696 B
YAML
8 years ago
|
- name: test playbook for ansible-pull
|
||
|
hosts: all
|
||
6 years ago
|
gather_facts: False
|
||
8 years ago
|
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"
|
||
6 years ago
|
|
||
|
- name: check that extra vars are correclty passed
|
||
|
assert:
|
||
|
that:
|
||
|
- docker_registries_login is defined
|
||
|
tags: ['never', 'test_ev']
|