Fix integration test inventory.

This commit is contained in:
Matt Clay 2019-03-11 23:49:08 -07:00
parent 759e037edc
commit 1143889f26
11 changed files with 7 additions and 19 deletions

View file

@ -4,5 +4,5 @@ testhost2 ansible_connection=local
testhost3 ansible_ssh_host=127.0.0.3 testhost3 ansible_ssh_host=127.0.0.3
testhost4 ansible_ssh_host=127.0.0.4 testhost4 ansible_ssh_host=127.0.0.4
[local:vars] [all:vars]
ansible_python_interpreter="{{ ansible_playbook_python }}" ansible_python_interpreter="{{ ansible_playbook_python }}"

View file

@ -1,7 +1,6 @@
- name: verify handlers_from on include_role - name: verify handlers_from on include_role
hosts: A hosts: A
gather_facts: False gather_facts: False
connection: local
tags: ['scenario1'] tags: ['scenario1']
tasks: tasks:
- name: test include_role - name: test include_role
@ -21,7 +20,6 @@
- name: verify handlers_from on import_role - name: verify handlers_from on import_role
hosts: A hosts: A
gather_facts: False gather_facts: False
connection: local
tasks: tasks:
- name: set facts to false - name: set facts to false
set_fact: set_fact:

View file

@ -4,3 +4,7 @@ B
C C
D D
E E
[testgroup:vars]
ansible_connection=local
ansible_python_interpreter="{{ ansible_playbook_python }}"

View file

@ -4,7 +4,6 @@
tags: normal tags: normal
hosts: testgroup hosts: testgroup
gather_facts: False gather_facts: False
connection: local
roles: roles:
- { role: test_force_handlers } - { role: test_force_handlers }
tasks: tasks:
@ -14,7 +13,6 @@
tags: force_true_in_play tags: force_true_in_play
hosts: testgroup hosts: testgroup
gather_facts: False gather_facts: False
connection: local
force_handlers: True force_handlers: True
roles: roles:
- { role: test_force_handlers, tags: force_true_in_play } - { role: test_force_handlers, tags: force_true_in_play }
@ -24,7 +22,6 @@
tags: force_false_in_play tags: force_false_in_play
hosts: testgroup hosts: testgroup
gather_facts: False gather_facts: False
connection: local
force_handlers: False force_handlers: False
roles: roles:
- { role: test_force_handlers, tags: force_false_in_play } - { role: test_force_handlers, tags: force_false_in_play }

View file

@ -2,14 +2,12 @@
- name: run handlers - name: run handlers
hosts: A hosts: A
gather_facts: False gather_facts: False
connection: local
roles: roles:
- { role: test_handlers_meta, tags: ['scenario1'] } - { role: test_handlers_meta, tags: ['scenario1'] }
- name: verify final handler was run - name: verify final handler was run
hosts: A hosts: A
gather_facts: False gather_facts: False
connection: local
tasks: tasks:
- name: verify handler2 ran - name: verify handler2 ran
assert: assert:
@ -21,7 +19,6 @@
- name: verify listening handlers - name: verify listening handlers
hosts: A hosts: A
gather_facts: False gather_facts: False
connection: local
tasks: tasks:
- name: notify some handlers - name: notify some handlers
command: echo foo command: echo foo
@ -46,6 +43,5 @@
- name: test handlers - name: test handlers
hosts: testgroup hosts: testgroup
gather_facts: False gather_facts: False
connection: local
roles: roles:
- { role: test_handlers } - { role: test_handlers }

View file

@ -3,7 +3,6 @@
- B - B
gather_facts: no gather_facts: no
any_errors_fatal: yes any_errors_fatal: yes
connection: local
vars: vars:
output_dir: /tmp output_dir: /tmp
tasks: tasks:

View file

@ -2,7 +2,6 @@
- name: notify inexistent handler - name: notify inexistent handler
hosts: localhost hosts: localhost
gather_facts: false gather_facts: false
connection: local
tasks: tasks:
- name: test notify an inexistent handler - name: test notify an inexistent handler
command: uptime command: uptime

View file

@ -2,7 +2,6 @@
- name: test listen with named handlers - name: test listen with named handlers
hosts: localhost hosts: localhost
gather_facts: false gather_facts: false
connection: local
tasks: tasks:
- name: test notify handlers listen - name: test notify handlers listen
command: uptime command: uptime
@ -27,7 +26,6 @@
- name: test listen unnamed handlers - name: test listen unnamed handlers
hosts: localhost hosts: localhost
gather_facts: false gather_facts: false
connection: local
pre_tasks: pre_tasks:
- name: notify some handlers - name: notify some handlers
command: echo foo command: echo foo
@ -51,7 +49,6 @@
- name: test with mixed notify by name and listen - name: test with mixed notify by name and listen
hosts: localhost hosts: localhost
gather_facts: false gather_facts: false
connection: local
tasks: tasks:
- name: test notify handlers names and identical listen - name: test notify handlers names and identical listen
command: uptime command: uptime
@ -91,7 +88,6 @@
- name: test listen in roles - name: test listen in roles
hosts: localhost hosts: localhost
gather_facts: false gather_facts: false
connection: local
roles: roles:
- role: test_handlers_listen - role: test_handlers_listen
tasks: tasks:

View file

@ -2,7 +2,6 @@
- name: verify listening handlers - name: verify listening handlers
hosts: A hosts: A
gather_facts: False gather_facts: False
connection: local
tasks: tasks:
- name: notify some handlers - name: notify some handlers
command: echo foo command: echo foo

View file

@ -1,5 +1,5 @@
[local] [local]
testhost ansible_connection=local testhost ansible_connection=local ansible_python_interpreter="{{ ansible_playbook_python }}"
[all:vars] [all:vars]
unicode_host_var=CaféEñyei unicode_host_var=CaféEñyei

View file

@ -1,7 +1,6 @@
--- ---
- name: 'A play with unicode: ¢ £ ¤ ¥' - name: 'A play with unicode: ¢ £ ¤ ¥'
hosts: localhost hosts: localhost
connection: local
vars: vars:
test_var: 'Ī ī Ĭ ĭ Į į İ ı IJ ij Ĵ ĵ Ķ ķ ĸ Ĺ ĺ Ļ ļ Ľ ľ Ŀ ŀ Ł ł Ń ń Ņ ņ Ň ň ʼn Ŋ ŋ Ō ō Ŏ ŏ Ő ő Œ' test_var: 'Ī ī Ĭ ĭ Į į İ ı IJ ij Ĵ ĵ Ķ ķ ĸ Ĺ ĺ Ļ ļ Ľ ľ Ŀ ŀ Ł ł Ń ń Ņ ņ Ň ň ʼn Ŋ ŋ Ō ō Ŏ ŏ Ő ő Œ'
hostnames: hostnames:
@ -32,6 +31,7 @@
groups: 'ĪīĬĭ' groups: 'ĪīĬĭ'
ansible_ssh_host: 127.0.0.1 ansible_ssh_host: 127.0.0.1
ansible_connection: local ansible_connection: local
ansible_python_interpreter: "{{ ansible_playbook_python }}"
with_items: "{{ hostnames }}" with_items: "{{ hostnames }}"
- name: 'A task with unicode extra vars' - name: 'A task with unicode extra vars'