Skip to content

Commit

Permalink
unixPB: Add changed_when fields to gcc roles (#2424)
Browse files Browse the repository at this point in the history
  • Loading branch information
Willsparker authored Jan 17, 2022
1 parent 8ed97eb commit 4e72854
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
shell: /usr/bin/gcc-4.8 >/dev/null 2>&1
ignore_errors: yes
register: gcc_installed
changed_when: false
tags:
- gcc-4.8
# TODO: write a condition when NOT to run this step
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
ignore_errors: yes
register: gcc7_installed
when: ansible_distribution == "RedHat" or ansible_distribution == "CentOS" or ansible_distribution == "openSUSE" or (ansible_architecture == "armv7l" and ((ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "16") or ansible_distribution == "Debian"))
changed_when: false
tags: gcc_7

- name: Configure gcc75 tarball extension on non-armv7l
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
when:
- (ansible_distribution == "RedHat" or ansible_distribution == "CentOS" )
- (ansible_architecture == "x86_64" or ansible_architecture == "aarch64")
changed_when: false
tags: gcc_9

# Unable to check the checksum of the binary as it'll be different for each architecture's tar.xz file
Expand Down

0 comments on commit 4e72854

Please sign in to comment.