diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2023-09-29 09:46:31 -0400 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2023-09-29 09:46:31 -0400 |
| commit | 7485ee324601055fff36a6e5b4362bbd134ded1e (patch) | |
| tree | c29ec3b25b54d7a40fdbb1e20ec03bf18fd4a57b /roles | |
| parent | Add brewfile (diff) | |
| download | dotfiles-7485ee324601055fff36a6e5b4362bbd134ded1e.zip | |
Rework for mac
Diffstat (limited to '')
| -rw-r--r-- | .config/nvim/init.vim (renamed from roles/vim/files/init.vim) | 0 | ||||
| -rw-r--r-- | .gdbinit (renamed from roles/user/files/.gdbinit) | 0 | ||||
| -rw-r--r-- | .gitconfig (renamed from roles/user/files/.gitconfig) | 0 | ||||
| -rw-r--r-- | .tmux.conf (renamed from roles/user/files/.tmux.conf) | 0 | ||||
| -rwxr-xr-x | .zshrc (renamed from roles/zsh/files/.zshrc) | 0 | ||||
| -rw-r--r-- | roles/1password/tasks/main.yaml | 24 | ||||
| -rw-r--r-- | roles/docker/tasks/main.yaml | 33 | ||||
| -rw-r--r-- | roles/fonts/tasks/main.yaml | 13 | ||||
| -rw-r--r-- | roles/pyenv/tasks/main.yaml | 46 | ||||
| -rw-r--r-- | roles/pyenv/vars/main.yaml | 2 | ||||
| -rw-r--r-- | roles/user/files/wallpaper.jpg | bin | 26719295 -> 0 bytes | |||
| -rw-r--r-- | roles/user/tasks/main.yaml | 43 | ||||
| -rw-r--r-- | roles/vim/tasks/main.yaml | 35 | ||||
| -rw-r--r-- | roles/vscode/tasks/main.yaml | 24 | ||||
| -rwxr-xr-x | roles/zsh/tasks/main.yaml | 38 |
15 files changed, 0 insertions, 258 deletions
diff --git a/roles/vim/files/init.vim b/.config/nvim/init.vim index 0c98b73..0c98b73 100644 --- a/roles/vim/files/init.vim +++ b/.config/nvim/init.vim diff --git a/roles/user/files/.gdbinit b/.gdbinit index 9422460..9422460 100644 --- a/roles/user/files/.gdbinit +++ b/.gdbinit diff --git a/roles/user/files/.gitconfig b/.gitconfig index 1086dfa..1086dfa 100644 --- a/roles/user/files/.gitconfig +++ b/.gitconfig diff --git a/roles/user/files/.tmux.conf b/.tmux.conf index 207d7e8..207d7e8 100644 --- a/roles/user/files/.tmux.conf +++ b/.tmux.conf diff --git a/roles/zsh/files/.zshrc b/.zshrc index 8d25a49..8d25a49 100755 --- a/roles/zsh/files/.zshrc +++ b/.zshrc diff --git a/roles/1password/tasks/main.yaml b/roles/1password/tasks/main.yaml deleted file mode 100644 index 88fe964..0000000 --- a/roles/1password/tasks/main.yaml +++ /dev/null @@ -1,24 +0,0 @@ ---- -- name: Import 1Password key - become: yes - ansible.builtin.rpm_key: - state: present - key: https://downloads.1password.com/linux/keys/1password.asc - -- name: Add 1Password YUM Repo - become: yes - yum_repository: - name: 1password - description: 1Password Stable Channel - baseurl: https://downloads.1password.com/linux/rpm/stable/$basearch - enabled: yes - gpgcheck: yes - repo_gpgcheck: yes - gpgkey: https://downloads.1password.com/linux/keys/1password.asc - state: present - -- name: Install - become: yes - dnf: - name: 1password - state: present diff --git a/roles/docker/tasks/main.yaml b/roles/docker/tasks/main.yaml deleted file mode 100644 index bf529b0..0000000 --- a/roles/docker/tasks/main.yaml +++ /dev/null @@ -1,33 +0,0 @@ ---- -- name: Install dnf core plugins - become: yes - dnf: - name: dnf-plugins-core - state: present - -- name: Add repo - become: yes - shell: | - dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo - -- name: Install - become: yes - - dnf: - name: "{{ item.key }}" - state: "{{ item.value.state | default('present') }}" - - with_dict: "{{packages}}" - vars: - packages: - docker-ce: - docker-ce-cli: - containerd.io: - docker-compose-plugin: - -- name: Add current user to docker group - become: yes - ansible.builtin.user: - append: yes - name: "{{ ansible_user_id }}" - groups: docker diff --git a/roles/fonts/tasks/main.yaml b/roles/fonts/tasks/main.yaml deleted file mode 100644 index f042c5d..0000000 --- a/roles/fonts/tasks/main.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -- name: Add Hack font COPR repo - become: yes - community.general.copr: - host: copr.fedorainfracloud.org - state: enabled - name: zawertun/hack-fonts - -- name: Install - become: yes - dnf: - name: hack-fonts - state: present diff --git a/roles/pyenv/tasks/main.yaml b/roles/pyenv/tasks/main.yaml deleted file mode 100644 index 7a20c78..0000000 --- a/roles/pyenv/tasks/main.yaml +++ /dev/null @@ -1,46 +0,0 @@ ---- -- name: Install build requirements - become: yes - - dnf: - name: "{{ item.key }}" - state: "{{ item.value.state | default('present') }}" - - with_dict: "{{dnf}}" - vars: - dnf: - make: - gcc: - zlib-devel: - bzip2: - bzip2-devel: - readline-devel: - sqlite: - sqlite-devel: - openssl-devel: - tk-devel: - libffi-devel: - xz-devel: - -- name: Download - ansible.builtin.git: - repo: https://github.com/pyenv/pyenv.git - dest: "{{ lookup('env', 'HOME') }}/.pyenv" - version: v2.3.4 - -- name: "Ensure shell startup file sets up correct environment" - lineinfile: - path: "{{ shell_startup_file_path }}" - line: "{{ item.value.line }}" - state: present - - with_dict: "{{lines}}" - vars: - # Assumption: This will only work for certain shells (like zsh, bash, etc.) - lines: - pyenv_root: - line: export PYENV_ROOT="$HOME/.pyenv" - export_pyenv_bin: - line: command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" - pyenv_init: - line: eval "$(pyenv init -)" diff --git a/roles/pyenv/vars/main.yaml b/roles/pyenv/vars/main.yaml deleted file mode 100644 index 1b89247..0000000 --- a/roles/pyenv/vars/main.yaml +++ /dev/null @@ -1,2 +0,0 @@ ---- -shell_startup_file_path: "{{ lookup('env', 'HOME') }}/.zshrc" diff --git a/roles/user/files/wallpaper.jpg b/roles/user/files/wallpaper.jpg Binary files differdeleted file mode 100644 index 94ae4cf..0000000 --- a/roles/user/files/wallpaper.jpg +++ /dev/null diff --git a/roles/user/tasks/main.yaml b/roles/user/tasks/main.yaml deleted file mode 100644 index 802d8c6..0000000 --- a/roles/user/tasks/main.yaml +++ /dev/null @@ -1,43 +0,0 @@ ---- -- name: Link dotfiles - file: - src: "{{ item.value.src }}" - dest: "{{ item.value.dest }}" - state: link - with_dict: "{{dotfiles}}" - vars: - dotfiles: - gitconfig: - src: "{{ role_path }}/files/.gitconfig" - dest: "{{ lookup('env', 'HOME') }}/.gitconfig" - gdbinit: - src: "{{ role_path }}/files/.gdbinit" - dest: "{{ lookup('env', 'HOME') }}/.gdbinit" - tmux: - src: "{{ role_path }}/files/.tmux.conf" - dest: "{{ lookup('env', 'HOME') }}/.tmux.conf" - -- name: Link wallpaper - file: - src: "{{ role_path }}/files/wallpaper.jpg" - dest: "$HOME/Pictures/wallpaper.jpg" - state: link - -- name: Install general packages - become: yes - - dnf: - name: "{{ item.key }}" - state: "{{ item.value.state | default('present') }}" - - with_dict: "{{dnf}}" - vars: - dnf: - "@Development tools": - curl: - firefox: - git: - openssl: - ripgrep: - rsync: - wget: diff --git a/roles/vim/tasks/main.yaml b/roles/vim/tasks/main.yaml deleted file mode 100644 index 0609f9b..0000000 --- a/roles/vim/tasks/main.yaml +++ /dev/null @@ -1,35 +0,0 @@ ---- -- name: Create folders - file: - path: "{{ lookup('env', 'HOME') }}/.config/nvim/autoload" - state: directory - -- name: Link configuration - file: - src: "{{ role_path }}/files/init.vim" - dest: "{{ lookup('env', 'HOME') }}/.config/nvim/init.vim" - state: link - -- name: Install packages - become: yes - - dnf: - name: "{{ item.key }}" - state: "{{ item.value.state | default('present') }}" - - with_dict: "{{packages}}" - vars: - packages: - python: - python-devel: - python-neovim: - vim: - neovim: - -- name: Install vim-plug - get_url: - url: https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim - dest: "$HOME/.config/nvim/autoload/plug.vim" - -- name: Install vim-plug plugins - shell: nvim +PlugInstall +qall --headless diff --git a/roles/vscode/tasks/main.yaml b/roles/vscode/tasks/main.yaml deleted file mode 100644 index 476ccc9..0000000 --- a/roles/vscode/tasks/main.yaml +++ /dev/null @@ -1,24 +0,0 @@ ---- -- name: Import Microsoft Key - become: yes - ansible.builtin.rpm_key: - state: present - key: https://packages.microsoft.com/keys/microsoft.asc - -- name: Add YUM Repo - become: yes - yum_repository: - name: vscode - description: Visual Studio Code - baseurl: https://packages.microsoft.com/yumrepos/vscode - enabled: yes - gpgcheck: yes - repo_gpgcheck: yes - gpgkey: https://packages.microsoft.com/keys/microsoft.asc - state: present - -- name: Install - become: yes - dnf: - name: code - state: present diff --git a/roles/zsh/tasks/main.yaml b/roles/zsh/tasks/main.yaml deleted file mode 100755 index fe0c039..0000000 --- a/roles/zsh/tasks/main.yaml +++ /dev/null @@ -1,38 +0,0 @@ ---- -- name: Install packages - become: yes - - dnf: - name: "{{ item.key }}" - state: "{{ item.value.state | default('present') }}" - - with_dict: "{{dnf}}" - vars: - dnf: - fzf: - git: - jq: - jc: - zsh: - -- name: Ensure shell is default for user - vars: - current_user: "{{ ansible_user_id }}" - become: yes - user: - name: "{{ current_user }}" - shell: /usr/bin/zsh - -- name: Link configuration - file: - src: "{{ role_path }}/files/.zshrc" - dest: "{{ lookup('env', 'HOME') }}/.zshrc" - state: link - -- name: Create folders - file: - path: "{{item}}" - state: directory - loop: - - "{{ lookup('env', 'HOME') }}/src" - - "{{ lookup('env', 'HOME') }}/bin" |