mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* Restrict to OSX 10.11 tests. * See whether updating brew helps. * Skip archive task for OSX. * Refactor homebrew task to make changing the package name easier. * Revert "See whether updating brew helps." This reverts commit8eceb9ef1f
. * Replace xz by gnu-tar. * Uninstall first. * Skip iso_extract task for OSX. * Revert "Restrict to OSX 10.11 tests." This reverts commit81823d2f97
. * ci_complete (cherry picked from commit106856ed86
) Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
0ff27c3b44
commit
e4212472e2
3 changed files with 58 additions and 44 deletions
|
@ -2,3 +2,4 @@ needs/root
|
||||||
shippable/posix/group2
|
shippable/posix/group2
|
||||||
destructive
|
destructive
|
||||||
skip/aix
|
skip/aix
|
||||||
|
skip/osx # FIXME
|
||||||
|
|
|
@ -32,54 +32,66 @@
|
||||||
# that:
|
# that:
|
||||||
# - upgrade_option_result.changed
|
# - upgrade_option_result.changed
|
||||||
|
|
||||||
- name: Install xz package using homebrew
|
- vars:
|
||||||
|
package_name: gnu-tar
|
||||||
|
|
||||||
|
block:
|
||||||
|
- name: Make sure {{ package_name }} package is not installed
|
||||||
homebrew:
|
homebrew:
|
||||||
name: xz
|
name: "{{ package_name }}"
|
||||||
state: present
|
|
||||||
update_homebrew: no
|
|
||||||
become: yes
|
|
||||||
become_user: "{{ brew_stat.stat.pw_name }}"
|
|
||||||
register: xz_result
|
|
||||||
|
|
||||||
- assert:
|
|
||||||
that:
|
|
||||||
- xz_result.changed
|
|
||||||
|
|
||||||
- name: Again install xz package using homebrew
|
|
||||||
homebrew:
|
|
||||||
name: xz
|
|
||||||
state: present
|
|
||||||
update_homebrew: no
|
|
||||||
become: yes
|
|
||||||
become_user: "{{ brew_stat.stat.pw_name }}"
|
|
||||||
register: xz_result
|
|
||||||
|
|
||||||
- assert:
|
|
||||||
that:
|
|
||||||
- not xz_result.changed
|
|
||||||
|
|
||||||
- name: Uninstall xz package using homebrew
|
|
||||||
homebrew:
|
|
||||||
name: xz
|
|
||||||
state: absent
|
state: absent
|
||||||
update_homebrew: no
|
update_homebrew: no
|
||||||
become: yes
|
become: yes
|
||||||
become_user: "{{ brew_stat.stat.pw_name }}"
|
become_user: "{{ brew_stat.stat.pw_name }}"
|
||||||
register: xz_result
|
|
||||||
|
|
||||||
- assert:
|
- name: Install {{ package_name }} package using homebrew
|
||||||
that:
|
|
||||||
- xz_result.changed
|
|
||||||
|
|
||||||
- name: Again uninstall xz package using homebrew
|
|
||||||
homebrew:
|
homebrew:
|
||||||
name: xz
|
name: "{{ package_name }}"
|
||||||
|
state: present
|
||||||
|
update_homebrew: no
|
||||||
|
become: yes
|
||||||
|
become_user: "{{ brew_stat.stat.pw_name }}"
|
||||||
|
register: package_result
|
||||||
|
|
||||||
|
- assert:
|
||||||
|
that:
|
||||||
|
- package_result.changed
|
||||||
|
|
||||||
|
- name: Again install {{ package_name }} package using homebrew
|
||||||
|
homebrew:
|
||||||
|
name: "{{ package_name }}"
|
||||||
|
state: present
|
||||||
|
update_homebrew: no
|
||||||
|
become: yes
|
||||||
|
become_user: "{{ brew_stat.stat.pw_name }}"
|
||||||
|
register: package_result
|
||||||
|
|
||||||
|
- assert:
|
||||||
|
that:
|
||||||
|
- not package_result.changed
|
||||||
|
|
||||||
|
- name: Uninstall {{ package_name }} package using homebrew
|
||||||
|
homebrew:
|
||||||
|
name: "{{ package_name }}"
|
||||||
state: absent
|
state: absent
|
||||||
update_homebrew: no
|
update_homebrew: no
|
||||||
become: yes
|
become: yes
|
||||||
become_user: "{{ brew_stat.stat.pw_name }}"
|
become_user: "{{ brew_stat.stat.pw_name }}"
|
||||||
register: xz_result
|
register: package_result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
- not xz_result.changed
|
- package_result.changed
|
||||||
|
|
||||||
|
- name: Again uninstall {{ package_name }} package using homebrew
|
||||||
|
homebrew:
|
||||||
|
name: "{{ package_name }}"
|
||||||
|
state: absent
|
||||||
|
update_homebrew: no
|
||||||
|
become: yes
|
||||||
|
become_user: "{{ brew_stat.stat.pw_name }}"
|
||||||
|
register: package_result
|
||||||
|
|
||||||
|
- assert:
|
||||||
|
that:
|
||||||
|
- not package_result.changed
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
shippable/posix/group1
|
shippable/posix/group1
|
||||||
destructive
|
destructive
|
||||||
skip/aix
|
skip/aix
|
||||||
|
skip/osx # FIXME
|
||||||
|
|
Loading…
Reference in a new issue