1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

corrected several usages of deprecated bare vars

This commit is contained in:
Brian Coca 2016-02-08 13:13:15 -05:00
parent ba51ed06cf
commit 08b3dbcda3
9 changed files with 18 additions and 18 deletions

View file

@ -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

View file

@ -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)

View file

@ -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.

View file

@ -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

View file

@ -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 }}

View file

@ -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';"

View file

@ -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:

View file

@ -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.

View file

@ -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