Skip to content

Commit

Permalink
Remove requirements.txt and add packages (#61)
Browse files Browse the repository at this point in the history
Co-authored-by: Veerendra Kakumanu <veerendra.kakumanu@MGYFQHL43F.local>
  • Loading branch information
veerendra2 and Veerendra Kakumanu authored Jul 22, 2024
1 parent 22887ea commit 0223c7f
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 34 deletions.
10 changes: 0 additions & 10 deletions files/requirements.txt

This file was deleted.

20 changes: 12 additions & 8 deletions tasks/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,12 @@
hash_host: true
with_items: "{{ known_hosts_list }}"

- name: Copy requirements.txt to /tmp
ansible.builtin.copy:
src: requirements.txt
dest: /tmp/requirements.txt

- name: Install pypi packages
ansible.builtin.pip:
requirements: /tmp/requirements.txt
state: latest
pip:
name: "{{ item.name | default(item) }}"
extra_args: "--no-cache-dir --upgrade"
executable: pip3
loop: "{{ pip_install_packages }}"

- name: Create projects directory
ansible.builtin.file:
Expand Down Expand Up @@ -58,6 +53,15 @@
group: "{{ user_name }}"
mode: 0640

- name: Create ~/.config/direnv/direnv.toml
community.general.ini_file:
path: ~/.config/direnv/direnv.toml
section: global
option: load_dotenv
value: true
mode: "0600"
backup: false

- name: Import dotfiles tasks
ansible.builtin.import_tasks: dotfiles.yml
when: install_dotfiles
12 changes: 5 additions & 7 deletions vars/MacOSX.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ brew_pkgs:
- coreutils
- cowsay
- curl
- direnv
- docutils
- figlet
- findutils
Expand All @@ -36,6 +37,7 @@ brew_pkgs:
- kubectx
- kubernetes-cli
- libpq
- moreutils
- mysql-client
- ncurses
- neofetch
Expand All @@ -47,7 +49,8 @@ brew_pkgs:
- pv
- python@3.11
- pyyaml
- readline
- qrcp
- rclone
- readline
- restic
- rtmpdump
Expand All @@ -59,18 +62,14 @@ brew_pkgs:
- stow
- telnet
- terraform
- terragrunt
- tmux
- tree
- unzip
- util-linux
- vim
- watch
- wget
- xclip
- yq
- moreutils
- rclone

brew_cask_appdir: /Applications

Expand All @@ -85,18 +84,17 @@ brew_cask_apps:
- handbrake
- iterm2
- jellyfin-media-player
- microsoft-azure-storage-explorer
- ngrok
- postman
- slack
- spotify
- stats
- textmate
- vagrant
- visual-studio-code
- vlc
- whatsapp
- zoom
- stats

brew_link_pkgs:
- libpq
Expand Down
17 changes: 8 additions & 9 deletions vars/Ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,19 @@ cli:
classic: true
yq:
classic: false

pkgs:
- apt-transport-https
- software-properties-common
- build-essential
- ca-certificates
- bcc
- binutils
- binwalk
- blktrace
- bpftrace
- bridge-utils
- build-essential
- ca-certificates
- conntrack
- debootstrap
- direnv
- ethtool
- fzf
- git
Expand All @@ -43,26 +42,29 @@ cli:
- linux-tools-common
- macchanger
- makepasswd
- pwgen
- moreutils
- nmap
- openssl
- p7zip-full
- pastebinit
- postgresql-client
- protonvpn-cli
- pv
- pwgen
- python3-dev
- python3-pip
- qemu-kvm
- rclone
- schroot
- screen
- tmux
- secure-delete
- smartmontools
- socat
- ssh
- sysdig
- sysstat
- systemtap
- tmux
- traceroute
- tree
- tshark
Expand All @@ -71,9 +73,6 @@ cli:
- vim
- wipe
- wireguard
- moreutils
- smartmontools
- rclone

desktop:
ppas:
Expand Down
10 changes: 10 additions & 0 deletions vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
---
user_home: "{{ ansible_env.HOME }}"
user_name: "{{ ansible_env.USER }}"

pip_install_packages:
- setuptools
- jmespath
- requests
- thefuck
- beautifulsoup4
- youtube_dl
- ansible
- tldr

0 comments on commit 0223c7f

Please sign in to comment.