Compare commits
1 Commits
b733305a28
...
moonlight
| Author | SHA1 | Date | |
|---|---|---|---|
| 98573c0066 |
@@ -1,5 +1,6 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
|
||||
roles:
|
||||
- role: sudo
|
||||
when: ansible_user_id != "root"
|
||||
@@ -14,7 +15,6 @@
|
||||
- role: bat
|
||||
- role: curl
|
||||
- role: fzf
|
||||
- role: gh
|
||||
- role: git
|
||||
- role: htop
|
||||
- role: jp
|
||||
@@ -28,5 +28,7 @@
|
||||
- role: nodejs
|
||||
- role: python
|
||||
|
||||
- role: 1password
|
||||
|
||||
- role: wsl
|
||||
when: '"WSL" in ansible_kernel'
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
- import_playbook: UnixCLI.yaml
|
||||
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: 1password
|
||||
@@ -14,9 +14,8 @@
|
||||
- role: bat
|
||||
- role: curl
|
||||
- role: fzf
|
||||
- role: gh
|
||||
- role: jq
|
||||
- role: tree
|
||||
- role: jq
|
||||
- role: yq
|
||||
|
||||
- role: llvm
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
- name: install homebrew package
|
||||
homebrew:
|
||||
name: gh
|
||||
state: latest
|
||||
@@ -1,31 +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
|
||||
@@ -14,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,5 +1,5 @@
|
||||
---
|
||||
- name: install chocolatey package
|
||||
win_chocolatey:
|
||||
name: gh
|
||||
name: moonlight-qt
|
||||
state: latest
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user