14 Commits

16 changed files with 133 additions and 27 deletions

4
playbooks/1password.yaml Normal file
View File

@@ -0,0 +1,4 @@
---
- hosts: localhost
roles:
- 1password

View File

@@ -0,0 +1,22 @@
---
- name: add yum repository key
become: true
rpm_key:
key: https://downloads.1password.com/linux/keys/1password.asc
- name: add yum repository
become: true
yum_repository:
name: 1password
description: 1Password Stable Channel
baseurl: https://downloads.1password.com/linux/rpm/stable/$basearch
enabled: true
gpgcheck: true
repo_gpgcheck: true
gpgkey: ['https://downloads.1password.com/linux/keys/1password.asc']
- name: install yum package
become: true
yum:
name: 1password
state: latest

View File

@@ -0,0 +1,6 @@
---
- name: install yum package
become: true
yum:
name: the_silver_searcher
state: latest

View File

@@ -0,0 +1,6 @@
---
- name: install yum package
become: true
yum:
name: bat
state: latest

View File

@@ -0,0 +1,6 @@
---
- name: install yum package
become: true
yum:
name: curl
state: latest

View File

@@ -0,0 +1,6 @@
---
- name: install yum package
become: true
yum:
name: fzf
state: latest

View File

@@ -0,0 +1,8 @@
---
- name: install yum package
become: true
yum:
name: neovim
state: latest
- include_tasks: Unix.yaml

View File

@@ -0,0 +1,6 @@
---
- name: install yum package
become: true
yum:
name: nodejs
state: latest

View File

@@ -8,3 +8,4 @@
- python3-pip
- python3-venv
- python3-virtualenv
state: latest

View File

@@ -0,0 +1,9 @@
---
- name: install yum packages
become: true
yum:
name:
- python3
- python3-pip
- python3-virtualenv
state: latest

View File

@@ -0,0 +1,3 @@
---
sudo_owner: root
sudo_group: wheel

View File

@@ -7,30 +7,4 @@
- sysstat
state: latest
- name: create systemd user unit directory
file:
state: directory
dest: ~/.config/systemd/user
- set_fact:
SYSTEM_INFO_SCRIPT_DIR: '{{ansible_env.HOME}}/.config/tmux/system-info'
- when: '"WSL" not in ansible_kernel'
set_fact:
SYSTEM_INFO_SCRIPT: '{{SYSTEM_INFO_SCRIPT_DIR}}/system-info-Linux.sh'
- when: '"WSL" in ansible_kernel'
set_fact:
SYSTEM_INFO_SCRIPT: '{{SYSTEM_INFO_SCRIPT_DIR}}/system-info-WSL.sh'
- name: install system-info systemd unit
template:
src: templates/system-info.service.j2
dest: ~/.config/systemd/user/system-info.service
notify: restart system-info
- name: enable system-info service
systemd:
name: system-info
scope: user
enabled: true
state: started
- include_tasks: Linux.yaml

View File

@@ -0,0 +1,28 @@
---
- name: create systemd user unit directory
file:
state: directory
dest: ~/.config/systemd/user
- set_fact:
SYSTEM_INFO_SCRIPT_DIR: '{{ansible_env.HOME}}/.config/tmux/system-info'
- when: '"WSL" not in ansible_kernel'
set_fact:
SYSTEM_INFO_SCRIPT: '{{SYSTEM_INFO_SCRIPT_DIR}}/system-info-Linux.sh'
- when: '"WSL" in ansible_kernel'
set_fact:
SYSTEM_INFO_SCRIPT: '{{SYSTEM_INFO_SCRIPT_DIR}}/system-info-WSL.sh'
- name: install system-info systemd unit
template:
src: templates/system-info.service.j2
dest: ~/.config/systemd/user/system-info.service
notify: restart system-info
- name: enable system-info service
systemd:
name: system-info
scope: user
enabled: true
state: started

View File

@@ -0,0 +1,9 @@
---
- name: install yum packages
become: true
yum:
name:
- sysstat
state: latest
- include_tasks: Linux.yaml

View File

@@ -0,0 +1,10 @@
---
- name: install yum packages
become: true
yum:
name:
- tmux
- sysstat
- urlview
- xsel
state: latest

View File

@@ -0,0 +1,8 @@
---
- name: install yum packages
become: true
yum:
name:
- zsh
- pinentry-tty
state: latest