Use package
for pkgng
and zypper
in tests.
This allows tests to run on other platforms when `pkgng` or `zypper` are not present.
This commit is contained in:
parent
888a059ee7
commit
8774b2f697
7 changed files with 7 additions and 7 deletions
|
@ -23,7 +23,7 @@
|
|||
- libapache2-mod-evasive
|
||||
|
||||
- name: install apache via zypper
|
||||
zypper:
|
||||
package:
|
||||
name: apache2
|
||||
state: present
|
||||
when: "ansible_os_family == 'Suse'"
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
when: ansible_pkg_mgr == 'yum'
|
||||
|
||||
- name: install mercurial (pkgng)
|
||||
pkgng:
|
||||
package:
|
||||
name: mercurial
|
||||
when: ansible_pkg_mgr == 'pkgng'
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
when: ansible_pkg_mgr == 'yum'
|
||||
|
||||
- name: uninstall packages which were not originally installed (pkgng)
|
||||
pkgng:
|
||||
package:
|
||||
name: mercurial
|
||||
state: absent
|
||||
autoremove: yes
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
dest: /etc/zypp/repos.d/security:privacy.repo
|
||||
|
||||
- name: SUSE | Install package
|
||||
zypper:
|
||||
package:
|
||||
name: password-store
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
when: git_install.changed
|
||||
|
||||
- name: remove auto-installed packages from FreeBSD
|
||||
pkgng:
|
||||
package:
|
||||
name: git
|
||||
state: absent
|
||||
autoremove: yes
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
notify: cleanup mysql
|
||||
|
||||
- name: install mysqldb_test FreeBSD dependencies
|
||||
pkgng:
|
||||
package:
|
||||
name: "{{ mysql_packages }}"
|
||||
state: present
|
||||
when: ansible_os_family == "FreeBSD"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
setup:
|
||||
|
||||
- name: Install lxml (FreeBSD)
|
||||
pkgng:
|
||||
package:
|
||||
name: '{{ "py27-lxml" if ansible_python.version.major == 2 else "py36-lxml" }}'
|
||||
state: present
|
||||
when: ansible_os_family == "FreeBSD"
|
||||
|
|
Loading…
Reference in a new issue