refactor: combine with Ubuntu Provisioning repo
Combine with this repository with https://github.com/opdavies/ubuntu-provisioning so that everything can be managed in one place, and add a role for each piece of software.
This commit is contained in:
parent
e11cf61218
commit
8916e90050
|
@ -1,69 +0,0 @@
|
|||
window:
|
||||
decorations: full
|
||||
dynamic_title: false
|
||||
padding:
|
||||
x: 6
|
||||
y: 6
|
||||
|
||||
font:
|
||||
italic:
|
||||
family: 'JetBrains Mono'
|
||||
style: Italic
|
||||
normal:
|
||||
family: 'JetBrains Mono'
|
||||
style: Regular
|
||||
size: 12
|
||||
offset:
|
||||
y: 10
|
||||
glyph_offset:
|
||||
y: 5
|
||||
|
||||
# Nord
|
||||
colors:
|
||||
primary:
|
||||
background: '0x2e3440'
|
||||
dim_foreground: '0xa5abb6'
|
||||
foreground: '0xd8dee9'
|
||||
cursor:
|
||||
cursor: '0xd8dee9'
|
||||
text: '0x2e3440'
|
||||
vi_mode_cursor:
|
||||
cursor: '0xd8dee9'
|
||||
text: '0x2e3440'
|
||||
selection:
|
||||
background: '0x4c566a'
|
||||
text: CellForeground
|
||||
search:
|
||||
matches:
|
||||
background: '0x88c0d0'
|
||||
foreground: CellBackground
|
||||
bar:
|
||||
background: '0x434c5e'
|
||||
foreground: '0xd8dee9'
|
||||
normal:
|
||||
black: '0x3b4252'
|
||||
blue: '0x81a1c1'
|
||||
cyan: '0x88c0d0'
|
||||
green: '0xa3be8c'
|
||||
magenta: '0xb48ead'
|
||||
red: '0xbf616a'
|
||||
white: '0xe5e9f0'
|
||||
yellow: '0xebcb8b'
|
||||
bright:
|
||||
black: '0x4c566a'
|
||||
blue: '0x81a1c1'
|
||||
cyan: '0x8fbcbb'
|
||||
green: '0xa3be8c'
|
||||
magenta: '0xb48ead'
|
||||
red: '0xbf616a'
|
||||
white: '0xeceff4'
|
||||
yellow: '0xebcb8b'
|
||||
dim:
|
||||
black: '0x373e4d'
|
||||
blue: '0x68809a'
|
||||
cyan: '0x6d96a5'
|
||||
green: '0x809575'
|
||||
magenta: '0x8c738c'
|
||||
red: '0x94545d'
|
||||
white: '0xaeb3bb'
|
||||
yellow: '0xb29e75'
|
3
ansible.cfg
Normal file
3
ansible.cfg
Normal file
|
@ -0,0 +1,3 @@
|
|||
[defaults]
|
||||
become = true
|
||||
inventory = ./hosts.ini
|
2
composer/.composer/.gitignore
vendored
2
composer/.composer/.gitignore
vendored
|
@ -1,2 +0,0 @@
|
|||
/.htaccess
|
||||
/cache/
|
|
@ -1,16 +0,0 @@
|
|||
{
|
||||
"minimum-stability": "dev",
|
||||
"prefer-stable": true,
|
||||
"require": {
|
||||
"deployer/deployer": "^4.0",
|
||||
"drush/drush": "^8.0",
|
||||
"hirak/prestissimo": "^0.3.5",
|
||||
"laravel/installer": "^2.1",
|
||||
"pantheon-systems/terminus": "^0.13.1",
|
||||
"squizlabs/php_codesniffer": "^2.7",
|
||||
"symfony/flex": "^1.6"
|
||||
},
|
||||
"config": {
|
||||
"sort-packages": true
|
||||
}
|
||||
}
|
3696
composer/.composer/composer.lock
generated
3696
composer/.composer/composer.lock
generated
File diff suppressed because it is too large
Load diff
21
main.yaml
Normal file
21
main.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- alacritty
|
||||
- ctop
|
||||
- dconf
|
||||
- docker
|
||||
- firefox
|
||||
- fzf
|
||||
- git
|
||||
- htop
|
||||
- lazydocker
|
||||
- lazygit
|
||||
- neovim
|
||||
- nnn
|
||||
- pv
|
||||
- rename
|
||||
- ripgrep
|
||||
- tmux
|
||||
- zsh
|
||||
- zsh-antigen
|
12
roles/alacritty/files/alacritty.yml
Normal file
12
roles/alacritty/files/alacritty.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
window:
|
||||
decorations: full
|
||||
dynamic_title: false
|
||||
|
||||
font:
|
||||
normal:
|
||||
family: Monospace
|
||||
size: 12
|
||||
offset:
|
||||
y: 20
|
||||
glyph_offset:
|
||||
y: 10
|
19
roles/alacritty/tasks/main.yaml
Normal file
19
roles/alacritty/tasks/main.yaml
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
- name: Install
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- alacritty
|
||||
state: latest
|
||||
become: true
|
||||
|
||||
- name: Config folder
|
||||
ansible.builtin.file:
|
||||
mode: "0755"
|
||||
path: "{{ ansible_user_dir }}/.config/alacritty"
|
||||
state: directory
|
||||
|
||||
- name: Configure
|
||||
ansible.builtin.file:
|
||||
src: "{{ role_path }}/files/alacritty.yml"
|
||||
dest: "{{ ansible_user_dir }}/.config/alacritty/alacritty.yml"
|
||||
state: link
|
7
roles/ctop/tasks/main.yaml
Normal file
7
roles/ctop/tasks/main.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: Install
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- ctop
|
||||
state: latest
|
||||
become: true
|
6
roles/dconf/tasks/main.yaml
Normal file
6
roles/dconf/tasks/main.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
- name: Configure
|
||||
ansible.builtin.file:
|
||||
src: "{{ role_path }}/files/dconf-settings.ini"
|
||||
dest: "{{ ansible_user_dir }}/.config/dconf-settings.ini"
|
||||
state: link
|
22
roles/docker/tasks/main.yaml
Normal file
22
roles/docker/tasks/main.yaml
Normal file
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
- name: Install
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- docker
|
||||
- docker-compose
|
||||
state: latest
|
||||
become: yes
|
||||
|
||||
- name: Enable service
|
||||
ansible.builtin.systemd:
|
||||
enabled: yes
|
||||
name: docker
|
||||
state: started
|
||||
become: yes
|
||||
|
||||
- name: Add to group
|
||||
ansible.builtin.user:
|
||||
append: yes
|
||||
groups: docker
|
||||
name: "{{ ansible_env['USER'] }}"
|
||||
become: yes
|
7
roles/firefox/tasks/main.yaml
Normal file
7
roles/firefox/tasks/main.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: Install
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- firefox
|
||||
state: latest
|
||||
become: true
|
7
roles/fzf/tasks/main.yaml
Normal file
7
roles/fzf/tasks/main.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: Install
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- fzf
|
||||
state: latest
|
||||
become: true
|
17
roles/git/tasks/main.yaml
Normal file
17
roles/git/tasks/main.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
- name: Install
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- git
|
||||
state: latest
|
||||
become: true
|
||||
|
||||
- name: Configuration
|
||||
ansible.builtin.file:
|
||||
src: "{{ role_path }}/files/{{ item }}"
|
||||
dest: "{{ ansible_user_dir }}/{{ item }}"
|
||||
state: link
|
||||
with_items:
|
||||
- .gitconfig
|
||||
- .gitignore-global
|
||||
- .gitmessage
|
7
roles/htop/tasks/main.yaml
Normal file
7
roles/htop/tasks/main.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: Install
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- htop
|
||||
state: latest
|
||||
become: true
|
7
roles/lazydocker/tasks/main.yaml
Normal file
7
roles/lazydocker/tasks/main.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: Install
|
||||
community.general.homebrew:
|
||||
name:
|
||||
- lazydocker
|
||||
state: latest
|
||||
path: /home/linuxbrew/.linuxbrew/bin
|
7
roles/lazygit/tasks/main.yaml
Normal file
7
roles/lazygit/tasks/main.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: Install
|
||||
community.general.homebrew:
|
||||
name:
|
||||
- lazygit
|
||||
state: latest
|
||||
path: /home/linuxbrew/.linuxbrew/bin
|
26
roles/neovim/tasks/main.yaml
Normal file
26
roles/neovim/tasks/main.yaml
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
- name: Add neovim PPA
|
||||
apt_repository:
|
||||
repo: "ppa:neovim-ppa/unstable"
|
||||
become: true
|
||||
|
||||
- name: Install Neovim
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- neovim
|
||||
state: latest
|
||||
become: true
|
||||
|
||||
- name: Create .config/nvim directory
|
||||
ansible.builtin.file:
|
||||
path: "{{ ansible_user_dir }}/.config/nvim"
|
||||
state: directory
|
||||
|
||||
- name: Configuration files
|
||||
ansible.builtin.file:
|
||||
src: "{{ role_path }}/files/{{ item }}"
|
||||
dest: "{{ ansible_user_dir }}/.config/nvim/{{ item }}"
|
||||
state: link
|
||||
with_items:
|
||||
- init.lua
|
||||
- lua
|
7
roles/nnn/tasks/main.yaml
Normal file
7
roles/nnn/tasks/main.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: Install
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- nnn
|
||||
state: latest
|
||||
become: true
|
7
roles/pv/tasks/main.yaml
Normal file
7
roles/pv/tasks/main.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: Install
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- pv
|
||||
state: latest
|
||||
become: true
|
7
roles/rename/tasks/main.yaml
Normal file
7
roles/rename/tasks/main.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: Install
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- rename
|
||||
state: latest
|
||||
become: true
|
7
roles/ripgrep/tasks/main.yaml
Normal file
7
roles/ripgrep/tasks/main.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: Install
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- ripgrep
|
||||
state: latest
|
||||
become: true
|
13
roles/tmux/tasks/main.yaml
Normal file
13
roles/tmux/tasks/main.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
- name: Install
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- tmux
|
||||
state: latest
|
||||
become: true
|
||||
|
||||
- name: Link .tmux.conf file
|
||||
ansible.builtin.file:
|
||||
src: "{{ role_path }}/files/.tmux.conf"
|
||||
dest: "{{ ansible_user_dir }}/.tmux.conf"
|
||||
state: link
|
5
roles/zsh-antigen/tasks/main.yaml
Normal file
5
roles/zsh-antigen/tasks/main.yaml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
- name: Download
|
||||
get_url:
|
||||
dest: ~/.antigen.zsh
|
||||
url: https://raw.githubusercontent.com/zsh-users/antigen/master/bin/antigen.zsh
|
23
roles/zsh/tasks/main.yaml
Normal file
23
roles/zsh/tasks/main.yaml
Normal file
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
- name: Install
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- zsh
|
||||
state: latest
|
||||
become: true
|
||||
|
||||
- name: Set default
|
||||
user:
|
||||
name: "{{ ansible_env['USER'] }}"
|
||||
shell: /usr/bin/zsh
|
||||
become: yes
|
||||
|
||||
- name: Configuration
|
||||
ansible.builtin.file:
|
||||
src: "{{ role_path }}/files/{{ item }}"
|
||||
dest: "{{ ansible_user_dir }}/{{ item }}"
|
||||
state: link
|
||||
with_items:
|
||||
- .zsh
|
||||
- .zshenv
|
||||
- .zshrc
|
Loading…
Reference in a new issue