Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
main
workstation
Commits
aea757e2
Commit
aea757e2
authored
Jan 12, 2021
by
Loïc Dachary
Browse files
Merge branch 'wip-fixes' into 'master'
Wip fixes See merge request
!4
parents
dec631e9
55158309
Changes
4
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
aea757e2
Ansible based automation of a workstation
*
cd software/enough
*
git clone --recurse-submodules https://lab.enough.community/main/workstation
*
virtualenv --python=/usr/bin/python3 ../virtualenv-workstation
*
source ../virtualenv-workstation/bin/activate
...
...
@@ -17,4 +18,6 @@ Ansible based automation of a workstation
## Usage
*
edit ~/software/enough/workstation/inventory/hosts.yml to add the client
*
add ssh public key to root in the client
*
ANSIBLE_PYTHON_INTERPRETER=/usr/bin/python3 ansible-playbook -i inventory playbook.yml
burp-playbook.yml
View file @
aea757e2
...
...
@@ -6,6 +6,7 @@
burp
:
dir
:
/spare
name
:
laptops
working_dir_recovery_method
:
resume
tasks
:
-
name
:
install pyopenssl
...
...
@@ -97,6 +98,7 @@
dir
:
/spare
name
:
laptops
port
:
4971
working_dir_recovery_method
:
resume
ssl
:
CA
:
'
{{
ca["content"]
|
b64decode
}}'
cert
:
'
{{
server_cert["content"]
|
b64decode
}}'
...
...
@@ -195,6 +197,7 @@
dir
:
/spare
name
:
laptops
port
:
4971
working_dir_recovery_method
:
resume
ssl
:
CA
:
'
{{
hostvars["burp-server"]["ca"]["content"]
|
b64decode
}}'
cert
:
'
{{
hostvars["burp-server"]["server_cert"]["content"]
|
b64decode
}}'
...
...
inventory/hosts.yml
View file @
aea757e2
...
...
@@ -4,6 +4,21 @@ all:
burp-server
:
ansible_host
:
10.8.0.94
ansible_user
:
debian
laptop-09
:
ansible_host
:
10.8.0.122
ansible_user
:
root
laptop-08
:
ansible_host
:
10.8.0.126
ansible_user
:
root
laptop-07
:
ansible_host
:
10.8.0.114
ansible_user
:
root
laptop-06
:
ansible_host
:
10.8.0.106
ansible_user
:
root
laptop-05
:
ansible_host
:
10.8.0.90
ansible_user
:
root
# laptop-04
sa
:
ansible_host
:
10.8.0.78
...
...
@@ -11,9 +26,26 @@ all:
laptop-03
:
ansible_host
:
10.8.0.82
ansible_user
:
root
laptop-02
:
ansible_host
:
10.8.0.50
ansible_user
:
root
laptop-01
:
ansible_host
:
10.8.0.26
ansible_user
:
root
laptop-00
:
ansible_host
:
10.8.0.86
ansible_user
:
root
clients
:
hosts
:
laptop-00
:
laptop-01
:
laptop-02
:
laptop-03
:
# laptop-04
sa
:
laptop-03
:
laptop-05
:
laptop-06
:
laptop-07
:
laptop-08
:
laptop-09
:
burp
@
5ee130cf
Subproject commit
91825e5a600a5e9e3854204dd42ad0c1dc99f9fd
Subproject commit
5ee130cff8430fb282f7e3cb42bbbc9133f0c63a
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment