summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Fedele <dan.fedele@gmail.com>2020-04-17 10:41:53 -0400
committerDan Fedele <dan.fedele@gmail.com>2020-04-17 10:41:53 -0400
commit3cc8924d10f6e140339242350c3e5edd8d1cd38b (patch)
tree40616b75fbbf0eca971ddf61191f5828604a55e5
parent5fcc057b886e0922e119a77c6d455795d6603600 (diff)
A little more code cleanup and order re-arranging
-rw-r--r--kali.yml23
-rw-r--r--setup-kali.sh2
2 files changed, 13 insertions, 12 deletions
diff --git a/kali.yml b/kali.yml
index e2bbd19..6598488 100644
--- a/kali.yml
+++ b/kali.yml
@@ -1,7 +1,12 @@
---
- hosts: localhost
tasks:
- - name: Installing base packages from apt
+ - name: Ensuring all packages are up to date
+ apt:
+ update_cache: yes
+ upgrade: dist
+
+ - name: Installing one-off packages from package manager
package:
name:
- terminator
@@ -19,11 +24,6 @@
- steghide
- git
state: latest
-
- - name: Ensuring all packages are up to date
- apt:
- update_cache: yes
- upgrade: dist
- name: Clone JumboJohn
git:
@@ -72,10 +72,11 @@
user_install: no
- name: Disable mouse interactivity in vim
- lineinfile:
- path: /var/etc/vimrc
+ blockinfile:
+ path: /etc/vim/vimrc
insertafter: EOF
state: present
- line:
- - "set mouse="
- - "set ttymouse=" \ No newline at end of file
+ block: |
+ " Added with ansible
+ set mouse=
+ set ttymouse= \ No newline at end of file
diff --git a/setup-kali.sh b/setup-kali.sh
index 2512a8a..cccda10 100644
--- a/setup-kali.sh
+++ b/setup-kali.sh
@@ -10,7 +10,7 @@ echo "* Installing pip *"
echo "***********************************"
curl -s https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py
-python3 /tmp/get-pip.py --user
+python3 /tmp/get-pip.py --user --no-warn-script-location
export PATH=$PATH:/root/.local/bin