mirror of
https://github.com/trailofbits/algo.git
synced 2025-04-04 16:29:57 +02:00
Fix Vultr (#14389)
This commit is contained in:
parent
7203f33f2e
commit
a924381e9e
3 changed files with 4 additions and 3 deletions
|
@ -19,6 +19,8 @@ EOF
|
|||
test -d /home/algo/.ssh || sudo -u algo mkdir -m 0700 /home/algo/.ssh
|
||||
echo "{{ lookup('file', '{{ SSH_keys.public }}') }}" | (sudo -u algo tee /home/algo/.ssh/authorized_keys && chmod 0600 /home/algo/.ssh/authorized_keys)
|
||||
|
||||
ufw --force reset
|
||||
|
||||
# shellcheck disable=SC2015
|
||||
dpkg -l sshguard && until apt-get remove -y --purge sshguard; do
|
||||
sleep 3
|
||||
|
|
|
@ -25,5 +25,6 @@ write_files:
|
|||
|
||||
runcmd:
|
||||
- set -x
|
||||
- ufw --force reset
|
||||
- sudo apt-get remove -y --purge sshguard || true
|
||||
- systemctl restart sshd.service
|
||||
|
|
|
@ -28,9 +28,7 @@
|
|||
vultr_startup_script:
|
||||
name: algo-startup
|
||||
script: |
|
||||
{{ lookup('template', 'files/cloud-init/base.sh') }}
|
||||
mkdir -p /var/lib/cloud/data/ || true
|
||||
touch /var/lib/cloud/data/result.json
|
||||
{{ lookup('template', 'files/cloud-init/base.yml') }}
|
||||
|
||||
- name: Creating a server
|
||||
vultr_server:
|
||||
|
|
Loading…
Add table
Reference in a new issue