Elminate usage of "BOOL != true".
This commit is contained in:
@@ -428,7 +428,7 @@
|
||||
|
||||
- name: General | Account Management | Provisioning Configuration | Exit Check
|
||||
shell: echo "Please configure the config files in {{ prov_dir }} then try again." && exit 1
|
||||
when: provision != true
|
||||
when: ! provision
|
||||
|
||||
|
||||
## Display values ##
|
||||
|
||||
@@ -308,8 +308,8 @@
|
||||
changed_when: "'REMOVED' in remove_additional.stdout"
|
||||
failed_when: "'FAILED' in remove_additional.stdout"
|
||||
become_user: "{{ user }}"
|
||||
when: coding != true
|
||||
or sdks != true
|
||||
when: !coding
|
||||
or !sdks
|
||||
|
||||
# Remove any versions which used to be part of this script and no longer used.
|
||||
- name: Workstation | Linux | Software | Android | Uninstall | Unused Modules
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
name:
|
||||
- lutris
|
||||
state: absent
|
||||
when: ansible_architecture != "aarch64" and gaming != true
|
||||
when: ansible_architecture != "aarch64" and ! gaming
|
||||
|
||||
## Uninstall Repo ##
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
repo: ppa:lutris-team/lutris
|
||||
update_cache: yes
|
||||
state: absent
|
||||
when: ansible_distribution in ("Ubuntu") and gaming != true
|
||||
when: ansible_distribution in ("Ubuntu") and ! gaming
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Workstation | Linux | Software | Lutris | Remove PPA (Debian)
|
||||
@@ -87,4 +87,4 @@
|
||||
- "mv {{ lutris_source_list }} ~/TRASH/"
|
||||
- "mv {{ lutris_keyfile }} ~/TRASH/"
|
||||
- "sudo apt update"
|
||||
when: ansible_distribution in ("Debian") and gaming != true and lutris_source_exists.stat.exists
|
||||
when: ansible_distribution in ("Debian") and ! gaming and lutris_source_exists.stat.exists
|
||||
|
||||
Reference in New Issue
Block a user