some changes

This commit is contained in:
Philip (a-0) 2023-09-13 10:47:03 +02:00
parent 96c51c415b
commit 109a147acc
2 changed files with 26 additions and 26 deletions

View file

@ -1,7 +1,17 @@
---
- name: Install generally important packages
- name: apt update && apt upgrade
apt:
upgrade: full
update_cache: yes
- name: Install generally important apt packages
apt:
pkg:
- htop
update_cache: yes
- flatpak
- name: Add flathub source
command: "flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo"
- name: Install VSCodium from flathub
command: "flatpak install flathub com.vscodium.codium"

View file

@ -1,35 +1,25 @@
- name: Install required packages
apt:
pkg:
- firejail
- npm
- node-grunt-cli
update_cache: yes
- name: Create cyberchef user-group
group:
name: cyberchef
state: present
- name: Create cyberchef user
user:
name: cyberchef
group: cyberchef
system: yes
- name: Create cyberchef user's npm config dir
become_user: cyberchef
file:
path: /home/cyberchef/.npm-global
state: directory
#- name: Create cyberchef user's npm config dir
# become_user: cyberchef
# file:
# path: /home/cyberchef/.npm-global
# state: directory
- name: Set some npm config
become_user: cyberchef
command: npm config set prefix '~/.npm-global && npm config set fetch-retry-mintimeout 30000 && npm config set fetch-retry-maxtimeout 150000'
#- name: Set some npm config
# become_user: cyberchef
# command: npm config set prefix '~/.npm-global && npm config set fetch-retry-mintimeout 30000 && npm config set fetch-retry-maxtimeout 150000'
- name: Set user's path variable
copy:
dest: /home/cyberchef/.profile
content: export PATH=~/.npm-global/bin:$PATH
#- name: Set user's path variable
# copy:
# dest: /home/cyberchef/.profile
# content: export PATH=~/.npm-global/bin:$PATH
- name: Clone CyberChef repo
become: yes