Migrate shell to FQCN.
This commit is contained in:
@@ -243,7 +243,7 @@
|
||||
|
||||
# This can only be run once, otherwise cmdline-tools creates latest-* folders.
|
||||
- name: Workstation | Linux | Software | Android | Install | Consistent Modules
|
||||
shell: "yes | {{ android_sdkmanager_temp }} --install '{{ item }}' --sdk_root={{ android_sdk_location }}"
|
||||
ansible.builtin.shell: "yes | {{ android_sdkmanager_temp }} --install '{{ item }}' --sdk_root={{ android_sdk_location }}"
|
||||
loop:
|
||||
# Current
|
||||
- cmdline-tools/latest
|
||||
@@ -256,7 +256,7 @@
|
||||
|
||||
# These are safe to run multiple times, and uses the new `latest` version.
|
||||
- name: Workstation | Linux | Software | Android | Install | Required Modules
|
||||
shell: |
|
||||
ansible.builtin.shell: |
|
||||
set -o pipefail
|
||||
if [[ {{ android_sdkmanager2_list }} | grep -v 'unknown' | grep -q '{{ item }}' == 1 ]]; then
|
||||
yes | {{ android_sdkmanager2_install }} '{{ item }}'
|
||||
@@ -277,7 +277,7 @@
|
||||
|
||||
# Add more versions for testing across all the important platforms.
|
||||
- name: Workstation | Linux | Software | Android | Install | Additional Modules
|
||||
shell: |
|
||||
ansible.builtin.shell: |
|
||||
set -o pipefail
|
||||
if [[ {{ android_sdkmanager2_list }} | grep -v 'unknown' | grep -q '{{ item }}' == 1 ]]; then
|
||||
yes | {{ android_sdkmanager2_install }} '{{ item }}'
|
||||
@@ -299,7 +299,7 @@
|
||||
|
||||
# Remove extra downloads if system is not meant for full amount of testing.
|
||||
- name: Workstation | Linux | Software | Android | Uninstall | Additional Modules
|
||||
shell: |
|
||||
ansible.builtin.shell: |
|
||||
set -o pipefail
|
||||
if [[ {{ android_sdkmanager2_list }} | grep -q '{{ item }}' == 0 ]]; then
|
||||
yes | {{ android_sdkmanager2_remove }} '{{ item }}'
|
||||
@@ -321,7 +321,7 @@
|
||||
|
||||
# Remove any versions which used to be part of this script and no longer used.
|
||||
- name: Workstation | Linux | Software | Android | Uninstall | Unused Modules
|
||||
shell: |
|
||||
ansible.builtin.shell: |
|
||||
set -o pipefail
|
||||
if [[ {{ android_sdkmanager2_list }} | grep -q '{{ item }}' == 0 ]]; then
|
||||
yes | {{ android_sdkmanager2_remove }} '{{ item }}'
|
||||
@@ -342,7 +342,7 @@
|
||||
|
||||
# Report the currently installed packges.
|
||||
- name: Workstation | Linux | Software | Android | Report Modules
|
||||
shell: "{{ android_sdkmanager2_list }} --all > {{ android_report_file }}"
|
||||
ansible.builtin.shell: "{{ android_sdkmanager2_list }} --all > {{ android_report_file }}"
|
||||
become: true
|
||||
become_user: "{{ user }}"
|
||||
when: coding
|
||||
@@ -350,25 +350,25 @@
|
||||
## Flutter and Licenses ##
|
||||
|
||||
- name: Workstation | Linux | Software | Android | Inform Flutter
|
||||
shell: "{{ flutter }} config --android-sdk={{ android_sdk_location }}"
|
||||
ansible.builtin.shell: "{{ flutter }} config --android-sdk={{ android_sdk_location }}"
|
||||
become: true
|
||||
become_user: "{{ user }}"
|
||||
when: coding
|
||||
|
||||
- name: Workstation | Linux | Software | Android | License Agreements [1/2]
|
||||
shell: "yes | {{ android_sdkmanager_final }} --licenses --sdk_root={{ android_sdk_location }}"
|
||||
ansible.builtin.shell: "yes | {{ android_sdkmanager_final }} --licenses --sdk_root={{ android_sdk_location }}"
|
||||
become: true
|
||||
become_user: "{{ user }}"
|
||||
when: coding
|
||||
|
||||
- name: Workstation | Linux | Software | Android | License Agreements [2/2]
|
||||
shell: "yes | {{ flutter }} doctor --android-licenses"
|
||||
ansible.builtin.shell: "yes | {{ flutter }} doctor --android-licenses"
|
||||
become: true
|
||||
become_user: "{{ user }}"
|
||||
when: coding
|
||||
|
||||
- name: Workstation | Linux | Software | Android | Refresh Flutter Doctor Report
|
||||
shell: "{{ item }}"
|
||||
ansible.builtin.shell: "{{ item }}"
|
||||
loop: "{{ flutter_report_commands }}"
|
||||
become: true
|
||||
become_user: "{{ user }}"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
###
|
||||
#### https://brave.com/linux/#debian-ubuntu-mint
|
||||
###- name: Workstation | Software | Brave | Add Repo [apt]
|
||||
### shell: "{{ item }}"
|
||||
### ansible.builtin.shell: "{{ item }}"
|
||||
### loop:
|
||||
### - curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
|
||||
### - echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main" | tee /etc/apt/sources.list.d/brave-browser-release.list
|
||||
@@ -29,7 +29,7 @@
|
||||
###
|
||||
#### https://brave.com/linux/#fedora-centos-streamrhel
|
||||
###- name: Workstation | Software | Brave | Add Repo [dnf]
|
||||
### shell: "{{ item }}"
|
||||
### ansible.builtin.shell: "{{ item }}"
|
||||
### loop:
|
||||
### - dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/x86_64/
|
||||
### - rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
|
||||
@@ -37,7 +37,7 @@
|
||||
###
|
||||
#### https://brave.com/linux/#opensuse
|
||||
###- name: Workstation | Software | Brave | Add Repo [zypper]
|
||||
### shell: "{{ item }}"
|
||||
### ansible.builtin.shell: "{{ item }}"
|
||||
### loop:
|
||||
### - rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
|
||||
### - zypper addrepo https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo
|
||||
@@ -62,18 +62,18 @@
|
||||
state: absent
|
||||
|
||||
- name: Workstation | Software | Brave | Remove Repo [apt]
|
||||
shell: rm /etc/apt/sources.list.d/brave-browser-*.list && apt update || echo "Not Needed"
|
||||
ansible.builtin.shell: rm /etc/apt/sources.list.d/brave-browser-*.list && apt update || echo "Not Needed"
|
||||
when: ansible_pkg_mgr == "apt"
|
||||
|
||||
- name: Workstation | Software | Brave | Remove Repo [dnf]
|
||||
shell: "{{ item }}"
|
||||
ansible.builtin.shell: "{{ item }}"
|
||||
loop:
|
||||
- rm /etc/yum.repos.d/brave-browser-*.repo || echo "Not Needed"
|
||||
- rpm -e gpg-pubkey-c2d4e821-5e7252b8 || echo "Not Needed"
|
||||
when: ansible_pkg_mgr == "dnf"
|
||||
|
||||
- name: Workstation | Software | Brave | Remove Repo [zypper]
|
||||
shell: "{{ item }}"
|
||||
ansible.builtin.shell: "{{ item }}"
|
||||
loop:
|
||||
- zypper removerepo brave-browser || echo "Not Needed"
|
||||
- rpm -e gpg-pubkey-c2d4e821-5e7252b8 || echo "Not Needed"
|
||||
|
||||
@@ -165,7 +165,7 @@
|
||||
## Test SDK ##
|
||||
|
||||
- name: Workstation | Linux | Software | Flutter | Doctor Report
|
||||
shell: "{{ item }}"
|
||||
ansible.builtin.shell: "{{ item }}"
|
||||
loop: "{{ flutter_report_commands }}"
|
||||
become: true
|
||||
become_user: "{{ user }}"
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
# Some Linux distros come with meh DE's, this fixes that.
|
||||
|
||||
- name: Workstation | Linux | Software | GNOME | Check (Parrot OS Only)
|
||||
shell: which gdm3
|
||||
ansible.builtin.shell: which gdm3
|
||||
register: gnome_install
|
||||
when: ansible_distribution in ("Parrot OS")
|
||||
ignore_errors: true
|
||||
|
||||
- name: Workstation | Linux | Software | GNOME | Install
|
||||
package:
|
||||
name:
|
||||
- gnome
|
||||
name:
|
||||
- gnome
|
||||
- gdm3
|
||||
state: present
|
||||
when: gnome_install is defined and gnome_install.failed is defined and gnome_install.failed
|
||||
@@ -20,5 +20,5 @@
|
||||
when: gnome_install is defined and gnome_install.failed is defined and gnome_install.failed
|
||||
|
||||
- name: Workstation | Linux | Software | GNOME | Exiting
|
||||
shell: exit 1
|
||||
ansible.builtin.shell: exit 1
|
||||
when: gnome_install is defined and gnome_install.failed is defined and gnome_install.failed
|
||||
|
||||
@@ -37,17 +37,17 @@
|
||||
sass_current: sass
|
||||
|
||||
- name: Workstation | Linux | Software | Hugo | npm | Gather
|
||||
shell: npm prefix -g
|
||||
ansible.builtin.shell: npm prefix -g
|
||||
register: npm_bin_dir # Provides /usr/local/ on Devuan, /usr/ on Artix.
|
||||
changed_when: false
|
||||
|
||||
- name: Workstation | Linux | Software | Hugo | npm | Remove Old
|
||||
shell: "npm remove -g {{ sass_old }}"
|
||||
ansible.builtin.shell: "npm remove -g {{ sass_old }}"
|
||||
args:
|
||||
creates: "{{ npm_bin_dir.stdout }}/bin/sass"
|
||||
|
||||
- name: Workstation | Linux | Software | Hugo | npm | Install New
|
||||
shell: "npm install -g {{ sass_current }}"
|
||||
ansible.builtin.shell: "npm install -g {{ sass_current }}"
|
||||
args:
|
||||
creates: "{{ npm_bin_dir.stdout }}/bin/sass"
|
||||
|
||||
|
||||
@@ -22,10 +22,10 @@
|
||||
- 17
|
||||
|
||||
- name: Workstation | Linux | Software | Java | pacman | Set
|
||||
shell: "archlinux-java set java-{{ jdk_version }}-openjdk"
|
||||
ansible.builtin.shell: "archlinux-java set java-{{ jdk_version }}-openjdk"
|
||||
|
||||
- name: Workstation | Linux | Software | Java | pacman | Link
|
||||
shell: "ln -sf /usr/lib/jvm {{ jdk_dir }}"
|
||||
ansible.builtin.shell: "ln -sf /usr/lib/jvm {{ jdk_dir }}"
|
||||
args:
|
||||
creates: "{{ jdk_dir }}"
|
||||
become: true
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
ignore_errors: true
|
||||
|
||||
- name: Workstation | Linux | Software | Lutris | Add PPA (Debian)
|
||||
shell: "{{ item }}"
|
||||
ansible.builtin.shell: "{{ item }}"
|
||||
loop:
|
||||
- "wget -q -O- https://download.opensuse.org/repositories/home:/strycore/Debian_13/Release.key \
|
||||
| gpg --dearmor \
|
||||
@@ -82,7 +82,7 @@
|
||||
ignore_errors: true
|
||||
|
||||
- name: Workstation | Linux | Software | Lutris | Remove PPA (Debian)
|
||||
shell: "{{ item }}"
|
||||
ansible.builtin.shell: "{{ item }}"
|
||||
loop:
|
||||
- "mv {{ lutris_source_list }} ~/TRASH/"
|
||||
- "mv {{ lutris_keyfile }} ~/TRASH/"
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
update_cache: true
|
||||
|
||||
- name: Workstation | Software | NodeJS | apt | extrepo | Enable
|
||||
shell: "extrepo enable {{ node_version }}"
|
||||
ansible.builtin.shell: "extrepo enable {{ node_version }}"
|
||||
|
||||
- name: Workstation | Software | NodeJS | apt | Install
|
||||
package:
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
# Needed for dnf packages such as vlc.
|
||||
# https://docs.fedoraproject.org/en-US/quick-docs/rpmfusion-setup/
|
||||
- name: Workstation | Linux | Software | Packages | Fedora Fusion Repos
|
||||
shell: "{{ item }}"
|
||||
ansible.builtin.shell: "{{ item }}"
|
||||
loop:
|
||||
- "dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm"
|
||||
- "dnf config-manager --enable rpmfusion-free"
|
||||
@@ -87,7 +87,7 @@
|
||||
when: ansible_service_mgr != "systemd"
|
||||
|
||||
- name: Workstation | Linux | Software | Packages | Install From AUR
|
||||
shell: "yay -Qs {{ item }} || yay --noconfirm -S {{ item }}"
|
||||
ansible.builtin.shell: "yay -Qs {{ item }} || yay --noconfirm -S {{ item }}"
|
||||
loop:
|
||||
- appimagelauncher
|
||||
when: ansible_pkg_mgr == "pacman"
|
||||
@@ -96,7 +96,7 @@
|
||||
ignore_errors: true
|
||||
|
||||
- name: Workstation | Linux | Software | Packages | Install From AUR [Coding]
|
||||
shell: "yay -Qs {{ item }} || yay --noconfirm -S {{ item }}"
|
||||
ansible.builtin.shell: "yay -Qs {{ item }} || yay --noconfirm -S {{ item }}"
|
||||
loop:
|
||||
- vscodium-bin
|
||||
- android-studio
|
||||
|
||||
@@ -118,7 +118,7 @@
|
||||
devuan_tlp_run: "{{ devuan_tlp_dir }}/run"
|
||||
|
||||
- name: Workstation | Linux | Software | TLP | runit | Devuan | Create Script
|
||||
shell: "{{ item }}"
|
||||
ansible.builtin.shell: "{{ item }}"
|
||||
loop:
|
||||
- "mkdir -pv {{ devuan_tlp_dir }}"
|
||||
- "echo '#!/bin/sh' > {{ devuan_tlp_run }}"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
# https://mullvad.net/en/help/install-mullvad-app-linux
|
||||
|
||||
- name: Workstation | Software | VPN | Mullvad | Add Repo [apt]
|
||||
shell: "{{ item }}"
|
||||
ansible.builtin.shell: "{{ item }}"
|
||||
loop:
|
||||
- sudo curl -fsSLo /usr/share/keyrings/mullvad-keyring.asc https://repository.mullvad.net/deb/mullvad-keyring.asc
|
||||
- echo "deb [signed-by=/usr/share/keyrings/mullvad-keyring.asc arch=$( dpkg --print-architecture )] https://repository.mullvad.net/deb/stable $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/mullvad.list
|
||||
@@ -15,7 +15,7 @@
|
||||
when: ansible_pkg_mgr == "apt"
|
||||
|
||||
- name: Workstation | Software | VPN | Mullvad | Add Repo [dnf]
|
||||
shell: "{{ item }}"
|
||||
ansible.builtin.shell: "{{ item }}"
|
||||
loop:
|
||||
- sudo dnf config-manager --add-repo https://repository.mullvad.net/rpm/stable/mullvad.repo
|
||||
when: ansible_pkg_mgr == "dnf"
|
||||
@@ -58,7 +58,7 @@
|
||||
register: mullvad_installed
|
||||
|
||||
- name: Workstation | Software | VPN | Mullvad | Devuan | Install
|
||||
shell: "{{ item }}"
|
||||
ansible.builtin.shell: "{{ item }}"
|
||||
loop:
|
||||
- "mkdir -pv {{ devuan_mullvad_dir }}"
|
||||
- "curl -L -o {{ devuan_mullvad_dir }}/Mullvad.deb {{ mullvad_deb_url }}"
|
||||
@@ -88,7 +88,7 @@
|
||||
when: ansible_pkg_mgr == "pacman"
|
||||
|
||||
- name: Workstation | Software | VPN | Mullvad | PATH | Install
|
||||
shell: "{{ item }}"
|
||||
ansible.builtin.shell: "{{ item }}"
|
||||
loop:
|
||||
- rm {{ mullvad_exe_new }} || echo "File does not exist."
|
||||
- echo "#!/usr/bin/env sh" > {{ mullvad_exe_new }}
|
||||
@@ -111,7 +111,7 @@
|
||||
when: ansible_service_mgr == "runit"
|
||||
|
||||
- name: Workstation | Software | VPN | Mullvad | PATH | Enable Lockdown
|
||||
shell: "{{ item }}"
|
||||
ansible.builtin.shell: "{{ item }}"
|
||||
loop:
|
||||
- mullvad lan set block
|
||||
- mullvad tunnel set ipv6 on
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
## Install Repo ##
|
||||
|
||||
- name: Workstation | Linux | Software | VS Codium | Add PPA
|
||||
shell: "{{ item }}"
|
||||
ansible.builtin.shell: "{{ item }}"
|
||||
loop:
|
||||
- "wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg \
|
||||
| gpg --dearmor \
|
||||
@@ -65,7 +65,7 @@
|
||||
## Remove Repo ##
|
||||
|
||||
- name: Workstation | Linux | Software | VS Codium | Remove PPA
|
||||
shell: "{{ item }}"
|
||||
ansible.builtin.shell: "{{ item }}"
|
||||
loop:
|
||||
- "mv {{ vscodium_source_list }} ~/TRASH/"
|
||||
- "mv /etc/apt/keyrings/vscodium*.gpg ~/TRASH/"
|
||||
|
||||
Reference in New Issue
Block a user