Compare commits
No commits in common. "3652b3c9cbd22b3c18d1e69296b62c13e11fe783" and "a3b51a92617ce736d8c8066c8b98fdaa7f95f5bf" have entirely different histories.
3652b3c9cb
...
a3b51a9261
@ -1,6 +1,5 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: zsh
|
- role: zsh
|
||||||
- role: tmux
|
- role: tmux
|
||||||
@ -11,10 +10,6 @@
|
|||||||
when: '"WSL" in ansible_kernel'
|
when: '"WSL" in ansible_kernel'
|
||||||
|
|
||||||
- hosts: windows
|
- hosts: windows
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: neovim
|
- role: neovim
|
||||||
- role: git
|
- role: git
|
||||||
- role: python
|
|
||||||
- role: autohotkey
|
|
||||||
- role: 1password
|
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install homebrew package
|
|
||||||
homebrew_cask:
|
|
||||||
name: 1password
|
|
||||||
state: latest
|
|
@ -1 +0,0 @@
|
|||||||
# TODO: https://support.1password.com/install-linux/#debian-or-ubuntu
|
|
@ -1,12 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install chocolatey package
|
|
||||||
win_chocolatey:
|
|
||||||
name:
|
|
||||||
- 1password
|
|
||||||
state: latest
|
|
||||||
|
|
||||||
- name: create start menu shortcut
|
|
||||||
win_shortcut:
|
|
||||||
src: '{{ansible_env.LOCALAPPDATA}}/1Password/app/7/1Password.exe'
|
|
||||||
dest: '{{ansible_env.ProgramData}}/Microsoft/Windows/Start Menu/Programs/1Password.lnk'
|
|
||||||
icon: '{{ansible_env.LOCALAPPDATA}}/1Password/app/7/1Password.exe,0'
|
|
@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
- include_tasks: '{{ansible_os_family}}.yaml'
|
|
@ -1,14 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install chocolatey package
|
|
||||||
win_chocolatey:
|
|
||||||
name: autohotkey
|
|
||||||
state: latest
|
|
||||||
|
|
||||||
- name: clone config repo
|
|
||||||
win_git:
|
|
||||||
repo: git@code.infektor.net:config/AutoHotKey.git
|
|
||||||
dest: '{{ansible_env.LOCALAPPDATA}}/AutoHotKey'
|
|
||||||
branch: master
|
|
||||||
|
|
||||||
# TODO: - name: create scheduled task
|
|
||||||
# win_scheduled_task:
|
|
@ -18,11 +18,3 @@
|
|||||||
# win_git_config:
|
# win_git_config:
|
||||||
# TODO: - name: neovim install pip packages
|
# TODO: - name: neovim install pip packages
|
||||||
# win_pip:
|
# win_pip:
|
||||||
# name: '{{neovim_pip_packages}}'
|
|
||||||
# state: latest
|
|
||||||
|
|
||||||
- name: create nvim start menu shortcut
|
|
||||||
win_shortcut:
|
|
||||||
src: '{{ansible_env.ChocolateyToolsLocation}}/neovim/nvim-win64/bin/nvim-qt.exe'
|
|
||||||
dest: '{{ansible_env.ProgramData}}/Microsoft/Windows/Start Menu/Programs/nvim.lnk'
|
|
||||||
icon: '{{ansible_env.ChocolateyToolsLocation}}/neovim/nvim-win64/bin/nvim-qt.exe,0'
|
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install homebrew packages
|
|
||||||
homebrew:
|
|
||||||
name:
|
|
||||||
- python
|
|
||||||
state: latest
|
|
@ -1,8 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install apt packages
|
|
||||||
apt:
|
|
||||||
name:
|
|
||||||
- python3
|
|
||||||
- python3-pip
|
|
||||||
- python3-virtualenv
|
|
||||||
- python-is-python3
|
|
@ -1,13 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install chocolatey packages
|
|
||||||
win_chocolatey:
|
|
||||||
name:
|
|
||||||
- python
|
|
||||||
state: latest
|
|
||||||
|
|
||||||
# TODO: - name: install config repo
|
|
||||||
# TODO: - name: set repo email
|
|
||||||
# TODO: - name: install pip packages
|
|
||||||
# TODO: - name: create config directories/files
|
|
||||||
|
|
||||||
# TODO: https://docs.python.org/3/using/windows.html#removing-the-max-path-limitation
|
|
@ -1,5 +1,44 @@
|
|||||||
---
|
---
|
||||||
- include_tasks: '{{ansible_os_family}}.yaml'
|
- name: install config repo
|
||||||
|
git:
|
||||||
|
repo: git@code.infektor.net:config/python.git
|
||||||
|
dest: ~/.config/python
|
||||||
|
|
||||||
- include_tasks: 'unix.yaml'
|
# TODO: set repo email
|
||||||
when: ansible_os_family != "Windows"
|
|
||||||
|
- name: install pip packages
|
||||||
|
pip:
|
||||||
|
name:
|
||||||
|
- flake8
|
||||||
|
- grip
|
||||||
|
- ipdb
|
||||||
|
- ipython
|
||||||
|
- isort
|
||||||
|
- pylint
|
||||||
|
- python-gist
|
||||||
|
- yapf
|
||||||
|
state: latest
|
||||||
|
extra_args: --user
|
||||||
|
|
||||||
|
- name: create directories
|
||||||
|
file:
|
||||||
|
state: directory
|
||||||
|
dest: '{{item}}'
|
||||||
|
with_items:
|
||||||
|
- ~/.config/ipython/profile_default
|
||||||
|
- ~/.config/pip
|
||||||
|
|
||||||
|
- name: create symbolic links
|
||||||
|
file:
|
||||||
|
state: link
|
||||||
|
src: '{{item.src}}'
|
||||||
|
dest: '{{item.dest}}'
|
||||||
|
with_items:
|
||||||
|
- src: ~/.config/python/flake8
|
||||||
|
dest: ~/.config/flake8
|
||||||
|
- src: ~/.config/python/pylintrc
|
||||||
|
dest: ~/.pylintrc
|
||||||
|
- src: ~/.config/python/ipython_config.py
|
||||||
|
dest: ~/.config/ipython/profile_default/ipython_config.py
|
||||||
|
- src: ~/.config/python/pip.conf
|
||||||
|
dest: ~/.config/pip/pip.conf
|
||||||
|
@ -1,36 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install config repo
|
|
||||||
git:
|
|
||||||
repo: git@code.infektor.net:config/python.git
|
|
||||||
dest: ~/.config/python
|
|
||||||
|
|
||||||
# TODO: set repo email
|
|
||||||
|
|
||||||
- name: install pip packages
|
|
||||||
pip:
|
|
||||||
name: '{{python_pip_packages}}'
|
|
||||||
state: latest
|
|
||||||
extra_args: --user
|
|
||||||
|
|
||||||
- name: create directories
|
|
||||||
file:
|
|
||||||
state: directory
|
|
||||||
dest: '{{item}}'
|
|
||||||
with_items:
|
|
||||||
- ~/.config/ipython/profile_default
|
|
||||||
- ~/.config/pip
|
|
||||||
|
|
||||||
- name: create symbolic links
|
|
||||||
file:
|
|
||||||
state: link
|
|
||||||
src: '{{item.src}}'
|
|
||||||
dest: '{{item.dest}}'
|
|
||||||
with_items:
|
|
||||||
- src: ~/.config/python/flake8
|
|
||||||
dest: ~/.config/flake8
|
|
||||||
- src: ~/.config/python/pylintrc
|
|
||||||
dest: ~/.pylintrc
|
|
||||||
- src: ~/.config/python/ipython_config.py
|
|
||||||
dest: ~/.config/ipython/profile_default/ipython_config.py
|
|
||||||
- src: ~/.config/python/pip.conf
|
|
||||||
dest: ~/.config/pip/pip.conf
|
|
@ -1,10 +0,0 @@
|
|||||||
---
|
|
||||||
python_pip_packages:
|
|
||||||
- flake8
|
|
||||||
- grip
|
|
||||||
- ipdb
|
|
||||||
- ipython
|
|
||||||
- isort
|
|
||||||
- pylint
|
|
||||||
- python-gist
|
|
||||||
- yapf
|
|
Loading…
x
Reference in New Issue
Block a user