mirror of
https://github.com/genebean/dots.git
synced 2026-03-28 01:47:42 -04:00
Merge pull request #215 from genebean/gcloud-cli-to-deb
multiple update - see commit messages
This commit is contained in:
commit
69bdfede57
3 changed files with 55 additions and 10 deletions
|
|
@ -14,3 +14,5 @@ all:
|
||||||
ansible_user: gliverma
|
ansible_user: gliverma
|
||||||
mini-watcher.local:
|
mini-watcher.local:
|
||||||
ansible_user: gene
|
ansible_user: gene
|
||||||
|
tart.local:
|
||||||
|
ansible_user: pi
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- name: Add 1Password apt signing key
|
- name: Add 1Password apt signing key
|
||||||
include_role:
|
ansible.builtin.include_role:
|
||||||
name: jack1142.apt_signing_key
|
name: jack1142.apt_signing_key
|
||||||
vars:
|
vars:
|
||||||
url: https://downloads.1password.com/linux/keys/1password.asc
|
url: https://downloads.1password.com/linux/keys/1password.asc
|
||||||
|
|
@ -21,8 +21,23 @@
|
||||||
filename: 1password
|
filename: 1password
|
||||||
update_cache: false
|
update_cache: false
|
||||||
|
|
||||||
|
- name: Add Google Cloud apt key
|
||||||
|
become: true
|
||||||
|
ansible.builtin.apt_key:
|
||||||
|
url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
|
||||||
|
keyring: /usr/share/keyrings/cloud.google.gpg
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Add Google apt repo
|
||||||
|
become: true
|
||||||
|
ansible.builtin.apt_repository:
|
||||||
|
repo: deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main
|
||||||
|
state: present
|
||||||
|
filename: google-cloud-sdk
|
||||||
|
update_cache: false
|
||||||
|
|
||||||
- name: Add Okta ASA client apt signing key
|
- name: Add Okta ASA client apt signing key
|
||||||
include_role:
|
ansible.builtin.include_role:
|
||||||
name: jack1142.apt_signing_key
|
name: jack1142.apt_signing_key
|
||||||
vars:
|
vars:
|
||||||
url: https://dist.scaleft.com/pki/scaleft_deb_key.asc
|
url: https://dist.scaleft.com/pki/scaleft_deb_key.asc
|
||||||
|
|
@ -52,7 +67,7 @@
|
||||||
update_cache: false
|
update_cache: false
|
||||||
|
|
||||||
- name: Add Tailscale apt signing key
|
- name: Add Tailscale apt signing key
|
||||||
include_role:
|
ansible.builtin.include_role:
|
||||||
name: jack1142.apt_signing_key
|
name: jack1142.apt_signing_key
|
||||||
vars:
|
vars:
|
||||||
url: https://pkgs.tailscale.com/stable/ubuntu/jammy.noarmor.gpg
|
url: https://pkgs.tailscale.com/stable/ubuntu/jammy.noarmor.gpg
|
||||||
|
|
@ -99,7 +114,6 @@
|
||||||
state: latest
|
state: latest
|
||||||
pkg:
|
pkg:
|
||||||
- 1password
|
- 1password
|
||||||
- ansible-lint
|
|
||||||
- bat
|
- bat
|
||||||
- boinc-manager
|
- boinc-manager
|
||||||
- boinctui
|
- boinctui
|
||||||
|
|
@ -113,6 +127,8 @@
|
||||||
- git
|
- git
|
||||||
- git-lfs
|
- git-lfs
|
||||||
- gnupg
|
- gnupg
|
||||||
|
- google-cloud-cli
|
||||||
|
- google-cloud-cli-gke-gcloud-auth-plugin
|
||||||
- htop
|
- htop
|
||||||
- httpie
|
- httpie
|
||||||
- hub
|
- hub
|
||||||
|
|
@ -122,6 +138,7 @@
|
||||||
- libssl-dev
|
- libssl-dev
|
||||||
- neofetch
|
- neofetch
|
||||||
- packer
|
- packer
|
||||||
|
- pass
|
||||||
- pcsc-tools
|
- pcsc-tools
|
||||||
- pcscd
|
- pcscd
|
||||||
- pdk
|
- pdk
|
||||||
|
|
@ -146,6 +163,12 @@
|
||||||
- yubikey-manager
|
- yubikey-manager
|
||||||
- zsh
|
- zsh
|
||||||
|
|
||||||
|
- name: Install git-credential-manager deb package
|
||||||
|
become: true
|
||||||
|
ansible.builtin.apt:
|
||||||
|
state: present
|
||||||
|
deb: https://github.com/GitCredentialManager/git-credential-manager/releases/download/v2.0.696/gcmcore-linux_amd64.2.0.696.deb
|
||||||
|
|
||||||
- name: Install Profile Switcher for Firefox deb package
|
- name: Install Profile Switcher for Firefox deb package
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
|
|
@ -211,7 +234,6 @@
|
||||||
classic: true
|
classic: true
|
||||||
name:
|
name:
|
||||||
- gitkraken # official version
|
- gitkraken # official version
|
||||||
- google-cloud-cli # official version
|
|
||||||
|
|
||||||
- name: Cider from Snapcraft
|
- name: Cider from Snapcraft
|
||||||
become: true
|
become: true
|
||||||
|
|
@ -231,7 +253,10 @@
|
||||||
|
|
||||||
- name: Python packages via pip
|
- name: Python packages via pip
|
||||||
ansible.builtin.pip:
|
ansible.builtin.pip:
|
||||||
|
state: latest
|
||||||
name:
|
name:
|
||||||
|
- ansible
|
||||||
|
- ansible-lint
|
||||||
- flake8
|
- flake8
|
||||||
|
|
||||||
- name: Install packages from Homebrew
|
- name: Install packages from Homebrew
|
||||||
|
|
@ -273,8 +298,21 @@
|
||||||
dest: "{{ lookup('env', 'HOME') }}/.zshrc"
|
dest: "{{ lookup('env', 'HOME') }}/.zshrc"
|
||||||
state: link
|
state: link
|
||||||
|
|
||||||
- name: Set shell to zsh
|
- name: Set shell to zsh and add to groups
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
name: "{{ lookup('env', 'USER') }}"
|
name: "{{ lookup('env', 'USER') }}"
|
||||||
shell: /usr/bin/zsh
|
shell: /usr/bin/zsh
|
||||||
|
append: true
|
||||||
|
groups:
|
||||||
|
- dialout
|
||||||
|
|
||||||
|
- name: Add passwordless sudo entries
|
||||||
|
become: true
|
||||||
|
jonellis.sudoers.sudoers:
|
||||||
|
name: "{{ lookup('env', 'USER') }}-no-password"
|
||||||
|
user: "{{ lookup('env', 'USER') }}"
|
||||||
|
nopassword: true
|
||||||
|
command:
|
||||||
|
- /usr/bin/systemctl restart pcscd
|
||||||
|
- /usr/bin/pkill -9 gpg-agent
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,14 @@ if [[ $(uname) == 'Darwin' ]]; then
|
||||||
fi
|
fi
|
||||||
elif [[ $(uname) == 'Linux' ]]; then
|
elif [[ $(uname) == 'Linux' ]]; then
|
||||||
if [[ -e /home/linuxbrew/.linuxbrew/bin/brew ]]; then
|
if [[ -e /home/linuxbrew/.linuxbrew/bin/brew ]]; then
|
||||||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
# Don't use the eval so that it doesn't override system python
|
||||||
|
# eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||||
|
export HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew"
|
||||||
|
export HOMEBREW_CELLAR="/home/linuxbrew/.linuxbrew/Cellar"
|
||||||
|
export HOMEBREW_REPOSITORY="/home/linuxbrew/.linuxbrew/Homebrew"
|
||||||
|
export PATH="${PATH}:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin"
|
||||||
|
export MANPATH="/home/linuxbrew/.linuxbrew/share/man${MANPATH+:$MANPATH}:"
|
||||||
|
export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:${INFOPATH:-}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -237,9 +244,7 @@ if [[ `uname` == 'Darwin' ]]; then
|
||||||
export RUBYOPT='-W:no-deprecated -W:no-experimental'
|
export RUBYOPT='-W:no-deprecated -W:no-experimental'
|
||||||
fi
|
fi
|
||||||
elif [[ `uname` == 'Linux' ]]; then
|
elif [[ `uname` == 'Linux' ]]; then
|
||||||
if [ -d "$HOME/.local/bin" ] ; then
|
|
||||||
PATH="$HOME/.local/bin:$PATH"
|
PATH="$HOME/.local/bin:$PATH"
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d "$HOME/.local/share/gem/ruby/3.0.0/bin" ] ; then
|
if [ -d "$HOME/.local/share/gem/ruby/3.0.0/bin" ] ; then
|
||||||
PATH="$HOME/.local/share/gem/ruby/3.0.0/bin:$PATH"
|
PATH="$HOME/.local/share/gem/ruby/3.0.0/bin:$PATH"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue