issue #477: tests: use Ansible 2.3-compatible include rather than import

This will break with Ansible 2.8. Probably going to end up with a regex
hack for CI.
issue510
David Wilson 6 years ago
parent 59dd0dc814
commit c1a4597e32

@ -1,3 +1,3 @@
- import_playbook: regression/all.yml - include: regression/all.yml
- import_playbook: integration/all.yml - include: integration/all.yml

@ -1,9 +1,9 @@
- import_playbook: copy.yml - include: copy.yml
- import_playbook: fixup_perms2__copy.yml - include: fixup_perms2__copy.yml
- import_playbook: low_level_execute_command.yml - include: low_level_execute_command.yml
- import_playbook: make_tmp_path.yml - include: make_tmp_path.yml
- import_playbook: remote_expand_user.yml - include: remote_expand_user.yml
- import_playbook: remote_file_exists.yml - include: remote_file_exists.yml
- import_playbook: remove_tmp_path.yml - include: remove_tmp_path.yml
- import_playbook: synchronize.yml - include: synchronize.yml
- import_playbook: transfer_data.yml - include: transfer_data.yml

@ -3,18 +3,18 @@
# This playbook imports all tests that are known to work at present. # This playbook imports all tests that are known to work at present.
# #
- import_playbook: action/all.yml - include: action/all.yml
- import_playbook: async/all.yml - include: async/all.yml
- import_playbook: become/all.yml - include: become/all.yml
- import_playbook: connection/all.yml - include: connection/all.yml
- import_playbook: connection_delegation/all.yml - include: connection_delegation/all.yml
- import_playbook: connection_loader/all.yml - include: connection_loader/all.yml
- import_playbook: context_service/all.yml - include: context_service/all.yml
- import_playbook: glibc_caches/all.yml - include: glibc_caches/all.yml
- import_playbook: local/all.yml - include: local/all.yml
- import_playbook: module_utils/all.yml - include: module_utils/all.yml
- import_playbook: playbook_semantics/all.yml - include: playbook_semantics/all.yml
- import_playbook: runner/all.yml - include: runner/all.yml
- import_playbook: ssh/all.yml - include: ssh/all.yml
- import_playbook: strategy/all.yml - include: strategy/all.yml
- import_playbook: stub_connections/all.yml - include: stub_connections/all.yml

@ -1,9 +1,9 @@
- import_playbook: multiple_items_loop.yml - include: multiple_items_loop.yml
- import_playbook: result_binary_producing_json.yml - include: result_binary_producing_json.yml
- import_playbook: result_binary_producing_junk.yml - include: result_binary_producing_junk.yml
- import_playbook: result_shell_echo_hi.yml - include: result_shell_echo_hi.yml
- import_playbook: runner_new_process.yml - include: runner_new_process.yml
- import_playbook: runner_one_job.yml - include: runner_one_job.yml
- import_playbook: runner_timeout_then_polling.yml - include: runner_timeout_then_polling.yml
- import_playbook: runner_two_simultaneous_jobs.yml - include: runner_two_simultaneous_jobs.yml
- import_playbook: runner_with_polling_and_timeout.yml - include: runner_with_polling_and_timeout.yml

@ -1,7 +1,7 @@
- import_playbook: su_password.yml - include: su_password.yml
- import_playbook: sudo_flags_failure.yml - include: sudo_flags_failure.yml
- import_playbook: sudo_nonexistent.yml - include: sudo_nonexistent.yml
- import_playbook: sudo_nopassword.yml - include: sudo_nopassword.yml
- import_playbook: sudo_password.yml - include: sudo_password.yml
- import_playbook: sudo_requiretty.yml - include: sudo_requiretty.yml

@ -1,8 +1,8 @@
--- ---
- import_playbook: disconnect_during_module.yml - include: disconnect_during_module.yml
- import_playbook: disconnect_resets_connection.yml - include: disconnect_resets_connection.yml
- import_playbook: exec_command.yml - include: exec_command.yml
- import_playbook: put_large_file.yml - include: put_large_file.yml
- import_playbook: put_small_file.yml - include: put_small_file.yml
- import_playbook: reset.yml - include: reset.yml

@ -9,4 +9,4 @@
file_name: large-file file_name: large-file
file_size: 512 file_size: 512
tasks: tasks:
- include_tasks: _put_file.yml - include: _put_file.yml

@ -9,4 +9,4 @@
file_name: small-file file_name: small-file
file_size: 123 file_size: 123
tasks: tasks:
- include_tasks: _put_file.yml - include: _put_file.yml

@ -1,5 +1,5 @@
- import_playbook: delegate_to_template.yml - include: delegate_to_template.yml
- import_playbook: local_action.yml - include: local_action.yml
- import_playbook: osa_container_standalone.yml - include: osa_container_standalone.yml
- import_playbook: osa_delegate_to_self.yml - include: osa_delegate_to_self.yml
- import_playbook: stack_construction.yml - include: stack_construction.yml

@ -1,3 +1,3 @@
- import_playbook: local_blemished.yml - include: local_blemished.yml
- import_playbook: paramiko_unblemished.yml - include: paramiko_unblemished.yml
- import_playbook: ssh_blemished.yml - include: ssh_blemished.yml

@ -1,3 +1,3 @@
- import_playbook: disconnect_cleanup.yml - include: disconnect_cleanup.yml
- import_playbook: lru_one_target.yml - include: lru_one_target.yml
- import_playbook: reconnection.yml - include: reconnection.yml

@ -1,2 +1,2 @@
- import_playbook: resolv_conf.yml - include: resolv_conf.yml

@ -1,4 +1,4 @@
- import_playbook: cwd_preserved.yml - include: cwd_preserved.yml
- import_playbook: env_preserved.yml - include: env_preserved.yml

@ -1,6 +1,6 @@
#- import_playbook: from_config_path.yml #- include: from_config_path.yml
#- import_playbook: from_config_path_pkg.yml #- include: from_config_path_pkg.yml
#- import_playbook: adjacent_to_playbook.yml #- include: adjacent_to_playbook.yml
- import_playbook: adjacent_to_role.yml - include: adjacent_to_role.yml
#- import_playbook: overrides_builtin.yml #- include: overrides_builtin.yml

@ -1,4 +1,4 @@
- import_playbook: become_flags.yml - include: become_flags.yml
- import_playbook: delegate_to.yml - include: delegate_to.yml
- import_playbook: environment.yml - include: environment.yml
- import_playbook: with_items.yml - include: with_items.yml

@ -1,21 +1,21 @@
- import_playbook: atexit.yml - include: atexit.yml
- import_playbook: builtin_command_module.yml - include: builtin_command_module.yml
- import_playbook: custom_bash_hashbang_argument.yml - include: custom_bash_hashbang_argument.yml
- import_playbook: custom_bash_old_style_module.yml - include: custom_bash_old_style_module.yml
- import_playbook: custom_bash_want_json_module.yml - include: custom_bash_want_json_module.yml
- import_playbook: custom_binary_producing_json.yml - include: custom_binary_producing_json.yml
- import_playbook: custom_binary_producing_junk.yml - include: custom_binary_producing_junk.yml
- import_playbook: custom_binary_single_null.yml - include: custom_binary_single_null.yml
- import_playbook: custom_perl_json_args_module.yml - include: custom_perl_json_args_module.yml
- import_playbook: custom_perl_want_json_module.yml - include: custom_perl_want_json_module.yml
- import_playbook: custom_python_json_args_module.yml - include: custom_python_json_args_module.yml
- import_playbook: custom_python_new_style_missing_interpreter.yml - include: custom_python_new_style_missing_interpreter.yml
- import_playbook: custom_python_new_style_module.yml - include: custom_python_new_style_module.yml
- import_playbook: custom_python_want_json_module.yml - include: custom_python_want_json_module.yml
- import_playbook: custom_script_interpreter.yml - include: custom_script_interpreter.yml
- import_playbook: environment_isolation.yml - include: environment_isolation.yml
- import_playbook: etc_environment.yml - include: etc_environment.yml
- import_playbook: forking_active.yml - include: forking_active.yml
- import_playbook: forking_correct_parent.yml - include: forking_correct_parent.yml
- import_playbook: forking_inactive.yml - include: forking_inactive.yml
- import_playbook: missing_module.yml - include: missing_module.yml

@ -7,9 +7,9 @@
any_errors_fatal: true any_errors_fatal: true
gather_facts: true gather_facts: true
tasks: tasks:
- include_tasks: _etc_environment_user.yml - include: _etc_environment_user.yml
when: ansible_system == "Linux" and is_mitogen when: ansible_system == "Linux" and is_mitogen
- include_tasks: _etc_environment_global.yml - include: _etc_environment_global.yml
# Don't destroy laptops. # Don't destroy laptops.
when: ansible_virtualization_type == "docker" when: ansible_virtualization_type == "docker"

@ -1,3 +1,3 @@
- import_playbook: config.yml - include: config.yml
- import_playbook: timeouts.yml - include: timeouts.yml
- import_playbook: variables.yml - include: variables.yml

@ -1 +1 @@
- import_playbook: mixed_vanilla_mitogen.yml - include: mixed_vanilla_mitogen.yml

@ -1,7 +1,7 @@
- import_playbook: kubectl.yml - include: kubectl.yml
- import_playbook: lxc.yml - include: lxc.yml
- import_playbook: lxd.yml - include: lxd.yml
- import_playbook: mitogen_doas.yml - include: mitogen_doas.yml
- import_playbook: mitogen_sudo.yml - include: mitogen_sudo.yml
- import_playbook: setns_lxc.yml - include: setns_lxc.yml
- import_playbook: setns_lxd.yml - include: setns_lxd.yml

@ -11,7 +11,7 @@
- meta: end_play - meta: end_play
when: not is_mitogen when: not is_mitogen
- include_tasks: _end_play_if_not_sudo_linux.yml - include: _end_play_if_not_sudo_linux.yml
- command: | - command: |
sudo -nE "{{lookup('env', 'VIRTUAL_ENV')}}/bin/ansible" sudo -nE "{{lookup('env', 'VIRTUAL_ENV')}}/bin/ansible"

@ -11,7 +11,7 @@
- meta: end_play - meta: end_play
when: not is_mitogen when: not is_mitogen
- include_tasks: _end_play_if_not_sudo_linux.yml - include: _end_play_if_not_sudo_linux.yml
- command: | - command: |
sudo -nE "{{lookup('env', 'VIRTUAL_ENV')}}/bin/ansible" sudo -nE "{{lookup('env', 'VIRTUAL_ENV')}}/bin/ansible"

@ -1,2 +1,2 @@
- import_playbook: kubectl.yml - include: kubectl.yml

@ -2,5 +2,5 @@
tasks: tasks:
- set_fact: - set_fact:
content: "{% for x in range(126977) %}x{% endfor %}" content: "{% for x in range(126977) %}x{% endfor %}"
- include_tasks: _file_service_loop.yml - include: _file_service_loop.yml
with_sequence: start=1 end=100 with_sequence: start=1 end=100

Loading…
Cancel
Save