Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing hosts to test files #952

Merged
merged 1 commit into from
Aug 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion test/command-check-failure.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
- tasks:
- hosts: localhost
tasks:
- name: command without checks
command: echo blah
args:
Expand Down
6 changes: 4 additions & 2 deletions test/command-check-success.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
- tasks:
- hosts: localhost
tasks:
- name: command with creates check
command: echo blah
args:
Expand Down Expand Up @@ -53,7 +54,8 @@
args:
creates: Z

- handlers:
- hosts: localhost
handlers:
- name: restart something
command: do something
- include: included-handlers.yml
3 changes: 2 additions & 1 deletion test/command-instead-of-shell-failure.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
- tasks:
- hosts: localhost
tasks:
- name: shell no pipe
shell: echo hello

Expand Down
3 changes: 2 additions & 1 deletion test/command-instead-of-shell-success.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
- tasks:
- hosts: localhost
tasks:
- name: shell with pipe
shell: echo hello | true

Expand Down
6 changes: 2 additions & 4 deletions test/jinja2-when-success.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
- name: test when
debug: msg=text
when: true

- hosts: all
ssbarnea marked this conversation as resolved.
Show resolved Hide resolved
roles:
- role: role
- name: test when 2
debug: msg=text2
when: 1 = 1
3 changes: 2 additions & 1 deletion test/package-check-failure.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
- tasks:
- hosts: localhost
tasks:
- name: install ansible
yum: name=ansible state=latest

Expand Down
3 changes: 2 additions & 1 deletion test/package-check-success.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
- tasks:
- hosts: localhost
tasks:
- name: install ansible
yum: name=ansible-2.1.0.0 state=present

Expand Down
3 changes: 2 additions & 1 deletion test/role-with-handler/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- name: foo
- hosts: localhost
name: foo
roles:
- { role: a-role }
1 change: 1 addition & 0 deletions test/test/always-run-success.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- hosts: localhost