diff --git a/test/integration/roles/setup_mysql_db/tasks/main.yml b/test/integration/roles/setup_mysql_db/tasks/main.yml index 612d94f6d11..d30f6967cb4 100644 --- a/test/integration/roles/setup_mysql_db/tasks/main.yml +++ b/test/integration/roles/setup_mysql_db/tasks/main.yml @@ -28,17 +28,17 @@ - name: install mysqldb_test rpm dependencies yum: name={{ item }} state=latest - with_items: mysql_packages + with_items: "{{mysql_packages}}" when: ansible_pkg_mgr == 'yum' - name: install mysqldb_test rpm dependencies dnf: name={{ item }} state=latest - with_items: mysql_packages + with_items: "{{mysql_packages}}" when: ansible_pkg_mgr == 'dnf' - name: install mysqldb_test debian dependencies apt: name={{ item }} state=latest - with_items: mysql_packages + with_items: "{{mysql_packages}}" when: ansible_pkg_mgr == 'apt' - name: start mysql_db service if not running diff --git a/test/integration/roles/setup_postgresql_db/tasks/main.yml b/test/integration/roles/setup_postgresql_db/tasks/main.yml index c25318a2adc..48f9211e1b4 100644 --- a/test/integration/roles/setup_postgresql_db/tasks/main.yml +++ b/test/integration/roles/setup_postgresql_db/tasks/main.yml @@ -10,12 +10,12 @@ # Make sure we start fresh - name: remove rpm dependencies for postgresql test package: name={{ item }} state=absent - with_items: postgresql_packages + with_items: "{{postgresql_packages}}" when: ansible_os_family == "RedHat" - name: remove dpkg dependencies for postgresql test apt: name={{ item }} state=absent - with_items: postgresql_packages + with_items: "{{postgresql_packages}}" when: ansible_pkg_mgr == 'apt' - name: remove old db (red hat) @@ -36,12 +36,12 @@ - name: install rpm dependencies for postgresql test package: name={{ item }} state=latest - with_items: postgresql_packages + with_items: "{{postgresql_packages}}" when: ansible_os_family == "RedHat" - name: install dpkg dependencies for postgresql test apt: name={{ item }} state=latest - with_items: postgresql_packages + with_items: "{{postgresql_packages}}" when: ansible_pkg_mgr == 'apt' - name: Initialize postgres (systemd) diff --git a/test/integration/roles/test_copy/tasks/main.yml b/test/integration/roles/test_copy/tasks/main.yml index d509093730e..edae89f56ad 100644 --- a/test/integration/roles/test_copy/tasks/main.yml +++ b/test/integration/roles/test_copy/tasks/main.yml @@ -150,7 +150,7 @@ assert: that: - "{{item.stat.mode}} == 0700" - with_items: dir_stats.results + with_items: "{{dir_stats.results}}" # errors on this aren't presently ignored so this test is commented out. But it would be nice to fix. diff --git a/test/integration/roles/test_file/tasks/main.yml b/test/integration/roles/test_file/tasks/main.yml index 518f91bf744..d5ba22645d8 100644 --- a/test/integration/roles/test_file/tasks/main.yml +++ b/test/integration/roles/test_file/tasks/main.yml @@ -248,7 +248,7 @@ that: - 'item.changed == true' - 'item.state == "file"' - with_items: file16_result.results + with_items: "{{file16_result.results}}" - name: try to force the sub-directory to a link file: src={{output_dir}}/testing dest={{output_dir}}/sub1 state=link force=yes diff --git a/test/integration/roles/test_git/tasks/main.yml b/test/integration/roles/test_git/tasks/main.yml index 49f5f53bfb8..e2e9e8bf3ca 100644 --- a/test/integration/roles/test_git/tasks/main.yml +++ b/test/integration/roles/test_git/tasks/main.yml @@ -88,7 +88,7 @@ - name: remove known_host files file: state=absent path={{ item }} - with_items: known_host_files + with_items: "{{known_host_files}}" - name: checkout ssh://git@github.com repo without accept_hostkey (expected fail) git: repo={{ repo_format2 }} dest={{ checkout_dir }} diff --git a/test/integration/roles/test_mysql_user/tasks/main.yml b/test/integration/roles/test_mysql_user/tasks/main.yml index 68042e74913..b0754390403 100644 --- a/test/integration/roles/test_mysql_user/tasks/main.yml +++ b/test/integration/roles/test_mysql_user/tasks/main.yml @@ -96,7 +96,7 @@ mysql_user: name={{ item[0] }} priv={{ item[1] }}.*:ALL append_privs=yes password={{ user_password_1 }} with_nested: - [ '{{ user_name_1 }}' , '{{ user_name_2 }}'] - - db_names + - "{{db_names}}" - name: show grants access for user1 on multiple database command: mysql "-e SHOW GRANTS FOR '{{ user_name_1 }}'@'localhost';" @@ -104,7 +104,7 @@ - name: assert grant access for user1 on multiple database assert: { that: "'{{ item }}' in result.stdout" } - with_items: db_names + with_items: "{{db_names}}" - name: show grants access for user2 on multiple database command: mysql "-e SHOW GRANTS FOR '{{ user_name_2 }}'@'localhost';" diff --git a/test/integration/roles/test_uri/tasks/main.yml b/test/integration/roles/test_uri/tasks/main.yml index 9ce05938b62..c58024e3158 100644 --- a/test/integration/roles/test_uri/tasks/main.yml +++ b/test/integration/roles/test_uri/tasks/main.yml @@ -69,8 +69,8 @@ - '"json" in item.1' - item.0.stat.checksum == item.1.content | checksum with_together: - - pass_checksum.results - - pass.results + - "{{pass_checksum.results}}" + - "{{pass.results}}" - name: checksum fail_json @@ -89,8 +89,8 @@ - item.0.stat.checksum == item.1.content | checksum - '"json" not in item.1' with_together: - - fail_checksum.results - - fail.results + - "{{fail_checksum.results}}" + - "{{fail.results}}" - name: test https fetch to a site with mismatched hostname and certificate uri: diff --git a/test/integration/roles/test_win_copy/tasks/main.yml b/test/integration/roles/test_win_copy/tasks/main.yml index 3d29775894e..ff26117e64d 100644 --- a/test/integration/roles/test_win_copy/tasks/main.yml +++ b/test/integration/roles/test_win_copy/tasks/main.yml @@ -183,7 +183,7 @@ # assert: # that: # - "{{item.stat.mode}} == 0700" -# with_items: dir_stats.results +# with_items: "{{dir_stats.results}}" # errors on this aren't presently ignored so this test is commented out. But it would be nice to fix. diff --git a/test/integration/roles/test_win_file/tasks/main.yml b/test/integration/roles/test_win_file/tasks/main.yml index a8d6e92b3d3..b128715226a 100644 --- a/test/integration/roles/test_win_file/tasks/main.yml +++ b/test/integration/roles/test_win_file/tasks/main.yml @@ -183,7 +183,7 @@ that: - 'item.changed == true' # - 'item.state == "file"' - with_items: file16_result.results + with_items: "{{file16_result.results}}" #- name: try to force the sub-directory to a link # win_file: src={{win_output_dir}}/testing dest={{win_output_dir}}/sub1 state=link force=yes