mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Move requirements into tests. (#35197)
This commit is contained in:
@@ -16,6 +16,22 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
- include_vars: '{{ item }}'
|
||||
with_first_found:
|
||||
- files:
|
||||
- '{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml'
|
||||
- '{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml'
|
||||
- '{{ ansible_os_family }}.yml'
|
||||
- 'default.yml'
|
||||
paths: '../vars'
|
||||
|
||||
- name: install dependencies for test
|
||||
package: name={{ package_item }} state=present
|
||||
with_items: "{{ test_packages }}"
|
||||
loop_control:
|
||||
loop_var: package_item
|
||||
when: ansible_distribution != "MacOSX"
|
||||
|
||||
- name: remove a gem
|
||||
gem: name=gist state=absent
|
||||
|
||||
|
||||
3
test/integration/targets/gem/vars/FreeBSD.yml
Normal file
3
test/integration/targets/gem/vars/FreeBSD.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
test_packages:
|
||||
- "devel/ruby-gems"
|
||||
- "ruby"
|
||||
2
test/integration/targets/gem/vars/RedHat.yml
Normal file
2
test/integration/targets/gem/vars/RedHat.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
test_packages:
|
||||
- "rubygems"
|
||||
1
test/integration/targets/gem/vars/default.yml
Normal file
1
test/integration/targets/gem/vars/default.yml
Normal file
@@ -0,0 +1 @@
|
||||
test_packages: []
|
||||
Reference in New Issue
Block a user