+
Skip to content

volard/dotfiles

Repository files navigation

Ansible driven dotfiles management

Linux

with curl

bash -c "$(curl -fsSL https://gitlab.com/dotfiles30/comma_files/-/raw/main/bin/dotfiles)"

or with wget

bash -c "$(wget -qO- https://gitlab.com/dotfiles30/comma_files/-/raw/main/bin/dotfiles)"

Windows

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
iex (iwr -Uri "https://gitlab.com/dotfiles30/comma_files/-/raw/main/bin/dotfiles.ps1" -UseBasicParsing).Content

Binary dotfiles (see) is in PATH after initial setup (make sure to reopen Bash).

Run specified roles only

dotfiles -t separated,roles,no,spaces

Structure

Each role installs and configures a program. If program doesn't need to be configured, it would be installed with help of programs (see) role. (this rule is broken now: the config is evolving with me, but I'm lazy to keep it clean)

roles/common_tasks/         # tasks, that can be used across roles
roles/name/molecule/        # test a role
files/                      # common static files
pre_tasks/                  # preliminary tasks to setup an OS
molecule/                   # test playbook

By default playbook would run all available roles (except common_tasks). The roles_to_exclude list defined in all.yml provides the way to exclude unwanted roles. default_roles in the all.yml updates automagically everytime to stay in sync with the roles subdirectories. It's done by sync_roles.py, that also automates usage of TechDufus's main.yml.

SSH keys

SSH keys as well as sensitive variables encoded with Ansible Valut

# encrypt files
ansible-vault encrypt ./roles/ssh/files/*

# encrypt variable
ansible-vault encrypt_string 'name' --name 'username' | wl-copy

Useful for later

Credits

jersey

godot install:

sudo pacman -S godot
sudo pacman -S libtheora

About

~/.config ❤️‍ Ansible

Resources

Stars

Watchers

Forks

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载