Compare commits
1 Commits
8fae111d0e
...
moonlight
| Author | SHA1 | Date | |
|---|---|---|---|
| 98573c0066 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1 @@
|
||||
external
|
||||
modules/win_git*
|
||||
|
||||
12
.vim/coc-settings.json
Normal file
12
.vim/coc-settings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"yaml.schemas": {
|
||||
"https://raw.githubusercontent.com/ansible-community/schemas/main/f/ansible.json#/$defs/playbook": [
|
||||
"./*.yaml"
|
||||
],
|
||||
"https://raw.githubusercontent.com/ansible-community/schemas/main/f/ansible.json#/$defs/tasks": [
|
||||
"./roles/*/handlers/*.yaml",
|
||||
"./roles/*/tasks/*.yaml",
|
||||
"./tasks.yaml"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
|
||||
roles:
|
||||
- role: sudo
|
||||
when: ansible_user_id != "root"
|
||||
- role: python
|
||||
|
||||
- role: zsh
|
||||
- role: neovim
|
||||
@@ -15,7 +15,6 @@
|
||||
- role: bat
|
||||
- role: curl
|
||||
- role: fzf
|
||||
- role: gh
|
||||
- role: git
|
||||
- role: htop
|
||||
- role: jp
|
||||
@@ -24,10 +23,12 @@
|
||||
- role: tidy
|
||||
- role: tree
|
||||
- role: yq
|
||||
- role: watch
|
||||
|
||||
- role: llvm
|
||||
- role: nodejs
|
||||
- role: python
|
||||
|
||||
- role: 1password
|
||||
|
||||
- role: wsl
|
||||
when: '"WSL" in ansible_kernel'
|
||||
@@ -5,7 +5,6 @@
|
||||
install_cad_apps: false
|
||||
|
||||
roles:
|
||||
- role: python
|
||||
- role: git
|
||||
- role: powershell
|
||||
- role: neovim
|
||||
@@ -15,13 +14,13 @@
|
||||
- role: bat
|
||||
- role: curl
|
||||
- role: fzf
|
||||
- role: gh
|
||||
- role: jq
|
||||
- role: tree
|
||||
- role: jq
|
||||
- role: yq
|
||||
|
||||
- role: llvm
|
||||
- role: nodejs
|
||||
- role: python
|
||||
|
||||
- role: 1password
|
||||
- role: autohotkey
|
||||
@@ -1,5 +0,0 @@
|
||||
[defaults]
|
||||
collections_path = collections
|
||||
library = modules
|
||||
roles_path = roles
|
||||
stdout_callback = yaml
|
||||
7
macOS.yaml
Normal file
7
macOS.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
- import_playbook: Unix.yaml
|
||||
|
||||
- hosts: localhost
|
||||
|
||||
roles:
|
||||
- role: obsidian
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
- import_playbook: UnixCLI.yaml
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: 1password
|
||||
@@ -1,13 +0,0 @@
|
||||
---
|
||||
- import_playbook: UnixGUI.yaml
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: fonts
|
||||
- role: mas
|
||||
|
||||
- role: iterm
|
||||
- role: magnet
|
||||
- role: microsoft-remote-desktop
|
||||
- role: obsidian
|
||||
- role: viscosity
|
||||
- role: webcatalog
|
||||
@@ -1,13 +1,10 @@
|
||||
---
|
||||
- set_fact:
|
||||
keyring: /etc/apt/trusted.gpg.d/1password-archive-keyring.gpg
|
||||
|
||||
- name: add apt signing key
|
||||
when: '"WSL" not in ansible_kernel'
|
||||
become: true
|
||||
apt_key:
|
||||
url: https://downloads.1password.com/linux/keys/1password.asc
|
||||
keyring: '{{keyring}}'
|
||||
keyring: /etc/apt/trusted.gpg.d/1password-archive-keyring.gpg
|
||||
state: present
|
||||
|
||||
- when: ansible_machine == 'x86_64'
|
||||
@@ -23,9 +20,9 @@
|
||||
become: true
|
||||
apt_repository:
|
||||
repo: >-
|
||||
deb [arch={{arch}} signed-by={{keyring}}]
|
||||
deb [arch={{arch}}
|
||||
signed-by=/etc/apt/trusted.gpg.d/1password-archive-keyring.gpg]
|
||||
https://downloads.1password.com/linux/debian/{{arch}} stable main
|
||||
filename: 1password
|
||||
|
||||
- name: install gui package
|
||||
when: '"WSL" not in ansible_kernel'
|
||||
|
||||
@@ -4,11 +4,6 @@
|
||||
register: zsh_completion_script
|
||||
changed_when: false
|
||||
|
||||
- name: create local zsh site functions directory
|
||||
file:
|
||||
state: directory
|
||||
path: ~/.local/share/zsh/site-functions
|
||||
|
||||
- name: create op zsh completion file
|
||||
copy:
|
||||
content: '{{zsh_completion_script.stdout}}'
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
- name: create .editrc config file
|
||||
template:
|
||||
src: editrc
|
||||
dest: '{{ansible_env.HOME}}/.editrc'
|
||||
@@ -1,3 +0,0 @@
|
||||
# Enable vi mode
|
||||
lldb:bind -v
|
||||
lldb:bind ^I lldb_complete
|
||||
@@ -1,9 +0,0 @@
|
||||
---
|
||||
- name: enable homebrew tap
|
||||
homebrew_tap:
|
||||
name: homebrew/cask-fonts
|
||||
|
||||
- name: install Caskaydia Cove Nerd Font
|
||||
homebrew_cask:
|
||||
name: font-caskaydia-cove-nerd-font
|
||||
state: latest
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
- name: install apt package
|
||||
become: true
|
||||
apt:
|
||||
name: fzf
|
||||
state: latest
|
||||
@@ -1,8 +1,6 @@
|
||||
---
|
||||
- when: ansible_distribution == 'Ubuntu' and
|
||||
ansible_distribution_version is version('22.04', '<=')
|
||||
include_tasks: Debian-old.yaml
|
||||
|
||||
- when: not (ansible_distribution == 'Ubuntu' and
|
||||
ansible_distribution_version is version('22.04', '<='))
|
||||
include_tasks: Debian-apt.yaml
|
||||
- name: install apt package
|
||||
become: true
|
||||
apt:
|
||||
name: fzf
|
||||
state: latest
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
- name: install homebrew package
|
||||
homebrew:
|
||||
name: gh
|
||||
state: latest
|
||||
@@ -1,37 +0,0 @@
|
||||
---
|
||||
- set_fact:
|
||||
arch_map:
|
||||
aarch64: arm64
|
||||
armv6l: armhf
|
||||
armv7l: armhf
|
||||
i386: i386
|
||||
x86_64: amd64
|
||||
- set_fact:
|
||||
arch: '{{ [ansible_architecture] | map("extract", arch_map) | first }}'
|
||||
|
||||
- name: download apt repository key
|
||||
become: true
|
||||
get_url:
|
||||
url: https://cli.github.com/packages/githubcli-archive-keyring.gpg
|
||||
dest: /usr/share/keyrings/githubcli-archive-keyring.gpg
|
||||
mode: 0644
|
||||
|
||||
- name: add apt repository list
|
||||
become: true
|
||||
apt_repository:
|
||||
filename: github-cli
|
||||
repo: 'deb [arch={{arch}} signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main'
|
||||
state: present
|
||||
|
||||
- name: install apt package
|
||||
become: true
|
||||
apt:
|
||||
name: gh
|
||||
state: latest
|
||||
update_cache: true
|
||||
register: gh_apt
|
||||
|
||||
- name: install zsh completions
|
||||
when: gh_apt.changed
|
||||
become: true
|
||||
shell: gh completion -s zsh > /usr/local/share/zsh/site-functions/_gh
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
- name: install chocolatey package
|
||||
win_chocolatey:
|
||||
name: gh
|
||||
state: latest
|
||||
@@ -1,2 +0,0 @@
|
||||
---
|
||||
- include_tasks: '{{ansible_os_family}}.yaml'
|
||||
@@ -18,4 +18,8 @@
|
||||
extra_args: --user
|
||||
state: latest
|
||||
|
||||
- include_tasks: ~/.config/git/tasks.yaml
|
||||
- name: create symbolic links
|
||||
file:
|
||||
state: link
|
||||
src: ~/.config/git/_git-changes
|
||||
dest: ~/.local/share/zsh/site-functions/_git-changes
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
- name: install homebrew package
|
||||
homebrew:
|
||||
name: glab
|
||||
state: latest
|
||||
@@ -1,67 +0,0 @@
|
||||
---
|
||||
- set_fact:
|
||||
glab: /usr/bin/glab
|
||||
- name: stat the executable
|
||||
stat:
|
||||
path: '{{glab}}'
|
||||
register: stat_glab
|
||||
|
||||
- name: get instlal version
|
||||
when: stat_glab.stat.exists
|
||||
command: '{{glab}} --version'
|
||||
register: glab_version_output
|
||||
changed_when: false
|
||||
|
||||
- when: stat_glab.stat.exists
|
||||
set_fact:
|
||||
glab_version: '{{glab_version_output.stdout | replace("glab version ", "v")}}'
|
||||
|
||||
- set_fact:
|
||||
gitlab_api: 'https://gitlab.com/api/v4'
|
||||
project_id: 'gitlab-org%2Fcli'
|
||||
|
||||
- name: get list of gitlab releases
|
||||
uri:
|
||||
url:
|
||||
'{{gitlab_api}}/projects/{{project_id}}/releases'
|
||||
register: releases
|
||||
|
||||
- set_fact:
|
||||
latest: '{{releases.json[0]}}'
|
||||
latest_version: '{{releases.json[0].tag_name}}'
|
||||
query: >
|
||||
[?contains(name, `glab`)] |
|
||||
[?contains(name, `Linux`)] |
|
||||
[?contains(name, `{{ansible_machine}}.deb`)] | [0]
|
||||
- set_fact:
|
||||
asset: '{{latest.assets.links|json_query(query)}}'
|
||||
|
||||
- name: create download directory
|
||||
when: glab_version is not defined or glab_version != latest_version
|
||||
tempfile:
|
||||
state: directory
|
||||
suffix: glab
|
||||
register: tempdir
|
||||
|
||||
- name: download .deb file
|
||||
when: glab_version is not defined or glab_version != latest_version
|
||||
get_url:
|
||||
url: '{{asset.url}}'
|
||||
dest: '{{tempdir.path}}/glab.deb'
|
||||
|
||||
- name: install .deb file
|
||||
when: glab_version is not defined or glab_version != latest_version
|
||||
become: true
|
||||
apt:
|
||||
deb: '{{tempdir.path}}/glab.deb'
|
||||
|
||||
- name: remove download directory
|
||||
when: glab_version is not defined or glab_version != latest_version
|
||||
file:
|
||||
state: absent
|
||||
path: '{{tempdir.path}}'
|
||||
|
||||
- name: install zsh completions
|
||||
when: glab_version is not defined or glab_version != latest_version
|
||||
command:
|
||||
glab completion -s zsh > ~/.local/share/zsh/site-functions/_glab
|
||||
@@ -1,2 +0,0 @@
|
||||
---
|
||||
- include_tasks: '{{ansible_os_family}}.yaml'
|
||||
@@ -1,10 +0,0 @@
|
||||
---
|
||||
- assert:
|
||||
that: ansible_os_family == "Darwin"
|
||||
|
||||
- name: install homebrew package
|
||||
homebrew_cask:
|
||||
name: iterm2
|
||||
state: latest
|
||||
|
||||
# TODO: Configure stuff, somehow?
|
||||
@@ -4,12 +4,9 @@
|
||||
url: https://api.github.com/repos/jmespath/jp/releases/latest
|
||||
register: latest
|
||||
|
||||
# TODO: Support arm64
|
||||
- set_fact:
|
||||
arch: '{{ [ansible_architecture] |
|
||||
map("extract", { "arm64": "arm64", "x86_64": "amd64" }) | first }}'
|
||||
|
||||
- set_fact:
|
||||
asset_query: '[?contains(name, `jp-darwin-{{arch}}`)] | [0]'
|
||||
asset_query: '[?contains(name, `jp-darwin-amd64`)] | [0]'
|
||||
assets: '{{latest.json.assets}}'
|
||||
latest_version: '{{latest.json.tag_name}}'
|
||||
jp_exe: '{{ansible_env.HOME}}/.local/bin/jp'
|
||||
@@ -17,7 +14,7 @@
|
||||
- name: check if already installed
|
||||
stat:
|
||||
path: '{{jp_exe}}'
|
||||
register: jp_stat
|
||||
register: jp_exe
|
||||
|
||||
- name: get installed version
|
||||
when: jp_stat.stat.exists == True
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
---
|
||||
- name: install apt package
|
||||
become: true
|
||||
apt:
|
||||
name: jq
|
||||
state: latest
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
---
|
||||
- include_tasks: Ubuntu.yaml
|
||||
@@ -1,2 +0,0 @@
|
||||
---
|
||||
- include_tasks: Ubuntu.yaml
|
||||
@@ -4,27 +4,14 @@
|
||||
url: https://api.github.com/repos/llvm/llvm-project/releases/latest
|
||||
register: llvm_latest
|
||||
|
||||
- name: read /etc/os-release
|
||||
slurp:
|
||||
src: /etc/os-release
|
||||
register: os_release_b64
|
||||
- name: extract UBUNTU_CODENAME=<name> to support dirivitive distros
|
||||
set_fact:
|
||||
ubuntu_codename: >-
|
||||
{{
|
||||
os_release_b64.content | b64decode |
|
||||
regex_search('UBUNTU_CODENAME=.*') |
|
||||
replace('UBUNTU_CODENAME=', '')
|
||||
}}
|
||||
|
||||
- set_fact:
|
||||
llvm_major_version:
|
||||
'{{llvm_latest.json.tag_name[8:llvm_latest.json.tag_name.find(".")]}}'
|
||||
- set_fact:
|
||||
llvm_apt_repo_url:
|
||||
'http://apt.llvm.org/{{ubuntu_codename}}/'
|
||||
'http://apt.llvm.org/{{ansible_distribution_release}}/'
|
||||
llvm_apt_category:
|
||||
'llvm-toolchain-{{ubuntu_codename}}-{{llvm_major_version}}'
|
||||
'llvm-toolchain-{{ansible_distribution_release}}-{{llvm_major_version}}'
|
||||
|
||||
- name: add upstream deb repository
|
||||
become: true
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
---
|
||||
- assert:
|
||||
that: ansible_os_family == 'Darwin'
|
||||
|
||||
- name: install app store package
|
||||
mas:
|
||||
id: 441258766
|
||||
state: latest
|
||||
@@ -1,8 +0,0 @@
|
||||
---
|
||||
- assert:
|
||||
that: ansible_os_family == 'Darwin'
|
||||
|
||||
- name: install homebrew package
|
||||
homebrew:
|
||||
name: mas
|
||||
state: latest
|
||||
@@ -1,8 +0,0 @@
|
||||
---
|
||||
- assert:
|
||||
that: ansible_os_family == "Darwin"
|
||||
|
||||
- name: install homebrew cask
|
||||
homebrew_cask:
|
||||
name: microsoft-remote-desktop
|
||||
state: latest
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
- name: install chocolatey package
|
||||
win_chocolatey:
|
||||
name: glab
|
||||
name: moonlight-qt
|
||||
state: latest
|
||||
@@ -1,12 +1,4 @@
|
||||
---
|
||||
- name: add neovim stable ppa
|
||||
when: ansible_distribution == 'Ubuntu' and
|
||||
ansible_distribution_version == '20.04'
|
||||
become: true
|
||||
apt_repository:
|
||||
repo: ppa:neovim-ppa/stable
|
||||
update_cache: true
|
||||
|
||||
- name: install apt package
|
||||
become: true
|
||||
apt:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: install homebrew package
|
||||
homebrew_cask:
|
||||
homebrew:
|
||||
name: obsidian
|
||||
state: latest
|
||||
|
||||
@@ -8,4 +8,4 @@
|
||||
git:
|
||||
repo: git@github.com:kbenzie/notes.git
|
||||
dest: '{{ansible_env.HOME}}/Documents/Notes'
|
||||
version: main
|
||||
branch: main
|
||||
|
||||
@@ -6,9 +6,3 @@
|
||||
win_chocolatey:
|
||||
name: prusaslicer
|
||||
state: latest
|
||||
|
||||
- name: create start menu shortcut
|
||||
win_shortcut:
|
||||
src: '{{ansible_env.ProgramData}}/chocolatey/bin/prusa-slicer.exe'
|
||||
dest: '{{ansible_env.ProgramData}}/Microsoft/Windows/Start Menu/Programs/PrusaSlicer.lnk'
|
||||
icon: '{{ansible_env.ProgramData}}/chocolatey/bin/prusa-slicer.exe,0'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
- include_tasks: '{{ansible_os_family}}.yaml'
|
||||
|
||||
- include_tasks: 'Unix.yaml'
|
||||
- include_tasks: 'unix.yaml'
|
||||
when: ansible_os_family != "Windows"
|
||||
|
||||
@@ -6,33 +6,6 @@
|
||||
|
||||
# TODO: set repo email
|
||||
|
||||
- name: create config directories
|
||||
file:
|
||||
state: directory
|
||||
path: '{{item}}'
|
||||
with_items:
|
||||
- ~/.config
|
||||
- ~/.config/ipython/profile_default
|
||||
- ~/.config/pip
|
||||
|
||||
# Ensure that pip.conf exists before ever installing pip packages since
|
||||
# Debian has enabled `EXTERNALLY-MANAGED` from PEP 668 which breaks `pip
|
||||
# install --user` unless configured otherwise.
|
||||
- name: create symbolic links
|
||||
file:
|
||||
state: link
|
||||
src: '{{item.src}}'
|
||||
dest: '{{item.dest}}'
|
||||
with_items:
|
||||
- src: ~/.config/python/flake8
|
||||
dest: ~/.config/flake8
|
||||
- src: ~/.config/python/pylintrc
|
||||
dest: ~/.pylintrc
|
||||
- src: ~/.config/python/ipython_config.py
|
||||
dest: ~/.config/ipython/profile_default/ipython_config.py
|
||||
- src: ~/.config/python/pip.conf
|
||||
dest: ~/.config/pip/pip.conf
|
||||
|
||||
- name: install pip packages
|
||||
pip:
|
||||
name: '{{python_pip_packages}}'
|
||||
@@ -46,3 +19,18 @@
|
||||
with_items:
|
||||
- ~/.config/ipython/profile_default
|
||||
- ~/.config/pip
|
||||
|
||||
- name: create symbolic links
|
||||
file:
|
||||
state: link
|
||||
src: '{{item.src}}'
|
||||
dest: '{{item.dest}}'
|
||||
with_items:
|
||||
- src: ~/.config/python/flake8
|
||||
dest: ~/.config/flake8
|
||||
- src: ~/.config/python/pylintrc
|
||||
dest: ~/.pylintrc
|
||||
- src: ~/.config/python/ipython_config.py
|
||||
dest: ~/.config/ipython/profile_default/ipython_config.py
|
||||
- src: ~/.config/python/pip.conf
|
||||
dest: ~/.config/pip/pip.conf
|
||||
@@ -5,7 +5,6 @@ python_pip_packages:
|
||||
- ipdb
|
||||
- ipython
|
||||
- isort
|
||||
- jmespath
|
||||
- pylint
|
||||
- python-gist
|
||||
- yapf
|
||||
|
||||
@@ -2,13 +2,11 @@
|
||||
- assert:
|
||||
that: ansible_user_id != "root"
|
||||
|
||||
- include_vars: '{{ansible_os_family}}.yaml'
|
||||
|
||||
- name: create /etc/sudoers.d/{user} config file
|
||||
become: true
|
||||
template:
|
||||
src: sudoers
|
||||
dest: '/etc/sudoers.d/{{ansible_user_id}}'
|
||||
owner: '{{sudo_owner}}'
|
||||
group: '{{sudo_group}}'
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0440'
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
---
|
||||
sudo_owner: root
|
||||
sudo_group: wheel
|
||||
@@ -1,3 +0,0 @@
|
||||
---
|
||||
sudo_owner: root
|
||||
sudo_group: root
|
||||
@@ -3,21 +3,6 @@
|
||||
pacman:
|
||||
name:
|
||||
- tmux
|
||||
- xclip
|
||||
- urlscan
|
||||
state: latest
|
||||
|
||||
- name: install pacman package
|
||||
when: '"WSL" not in ansible_kernel'
|
||||
become: true
|
||||
pacman:
|
||||
name: xsel
|
||||
state: latest
|
||||
|
||||
- name: remove pacman package
|
||||
when: '"WSL" in ansible_kernel'
|
||||
become: true
|
||||
pacman:
|
||||
name:
|
||||
- xclip
|
||||
- xsel
|
||||
state: absent
|
||||
|
||||
@@ -3,34 +3,7 @@
|
||||
homebrew:
|
||||
name:
|
||||
- tmux
|
||||
- osx-cpu-temp
|
||||
- reattach-to-user-namespace
|
||||
- urlview
|
||||
state: latest
|
||||
|
||||
- name: check terminal info description exists
|
||||
command: /usr/bin/infocmp -x tmux-256color
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
register: terminfo_exists
|
||||
|
||||
- name: download latest terminfo description
|
||||
when: terminfo_exists.rc == 1
|
||||
get_url:
|
||||
url: https://gist.githubusercontent.com/nicm/ea9cf3c93f22e0246ec858122d9abea1/raw/37ae29fc86e88b48dbc8a674478ad3e7a009f357/tmux-256color
|
||||
dest: ~/tmux-256color
|
||||
|
||||
- name: compile terminal info
|
||||
when: terminfo_exists.rc == 1
|
||||
command: /usr/bin/tic -x ~/tmux-256color
|
||||
|
||||
- name: cleanup downloaded terminfo description
|
||||
when: terminfo_exists.rc == 1
|
||||
file:
|
||||
path: ~/tmux-256color
|
||||
state: absent
|
||||
|
||||
- name: check terminal info description exists
|
||||
when: terminfo_exists.rc == 1
|
||||
command: /usr/bin/infocmp -x tmux-256color
|
||||
changed_when: false
|
||||
register: terminfo_exists
|
||||
|
||||
@@ -1,26 +1,12 @@
|
||||
---
|
||||
- name: install apt packages
|
||||
become: true
|
||||
apt:
|
||||
package:
|
||||
name:
|
||||
- tmux
|
||||
- gawk
|
||||
- jq
|
||||
- sysstat
|
||||
- urlview
|
||||
state: latest
|
||||
|
||||
- name: install apt package
|
||||
when: '"WSL" not in ansible_kernel'
|
||||
become: true
|
||||
apt:
|
||||
name: xsel
|
||||
state: latest
|
||||
|
||||
- name: remove apt package
|
||||
when: '"WSL" in ansible_kernel'
|
||||
become: true
|
||||
apt:
|
||||
name:
|
||||
- xclip
|
||||
- xsel
|
||||
state: absent
|
||||
state: latest
|
||||
|
||||
@@ -3,22 +3,8 @@
|
||||
dnf:
|
||||
name:
|
||||
- tmux
|
||||
- xclip
|
||||
- urlscan
|
||||
- sysstat
|
||||
- jq
|
||||
state: latest
|
||||
|
||||
- name: install dnf package
|
||||
when: '"WSL" not in ansible_kernel'
|
||||
become: true
|
||||
dnf:
|
||||
name: xsel
|
||||
state: latest
|
||||
|
||||
- name: remove dnf package
|
||||
when: '"WSL" in ansible_kernel'
|
||||
become: true
|
||||
dnf:
|
||||
name:
|
||||
- xclip
|
||||
- xsel
|
||||
state: absent
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
---
|
||||
- assert:
|
||||
that: ansible_os_family == "Darwin"
|
||||
|
||||
- name: install homebrew package
|
||||
homebrew_cask:
|
||||
name: viscosity
|
||||
state: latest
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
- name: install homebrew package
|
||||
when: ansible_os_family == "Darwin"
|
||||
homebrew:
|
||||
name: watch
|
||||
state: latest
|
||||
@@ -1,8 +0,0 @@
|
||||
---
|
||||
- assert:
|
||||
that: ansible_os_family == "Darwin"
|
||||
|
||||
- name: install homebrew package
|
||||
homebrew_cask:
|
||||
name: webcatalog
|
||||
state: latest
|
||||
@@ -36,7 +36,7 @@
|
||||
- name: copy win_git files to ansible modules directory
|
||||
copy:
|
||||
src: '~/.config/local/external/ansible-win_git/{{item}}'
|
||||
dest: '~/.config/local/modules/{{item}}'
|
||||
dest: '~/.ansible/plugins/modules/{{item}}'
|
||||
with_items:
|
||||
- win_git.ps1
|
||||
- win_git.py
|
||||
|
||||
@@ -64,19 +64,6 @@
|
||||
loop_control:
|
||||
label: '{{item.dest}}'
|
||||
|
||||
- name: list commands with available completions
|
||||
command:
|
||||
zsh {{ansible_env.HOME}}/.config/zsh/list-commands-with-available-completions.zsh
|
||||
changed_when: false
|
||||
register: completion_commands
|
||||
|
||||
- name: install completions for available commands
|
||||
file:
|
||||
state: link
|
||||
src: '~/.config/zsh/zsh-completions/src/_{{item}}'
|
||||
dest: '~/.local/share/zsh/site-functions/_{{item}}'
|
||||
with_items: '{{completion_commands.stdout}}'
|
||||
|
||||
- name: get absolute path
|
||||
shell: command -v zsh
|
||||
register: zsh
|
||||
|
||||
Reference in New Issue
Block a user