Skip to content

Instantly share code, notes, and snippets.


Netguru NetguruGist

View GitHub Profile
View gist:64325e203506b4feea99d4104972ce5c
- name: remove admin account
user: name=admin state=absent remove=true
View gist:61e35bd360d4b915e7dc871026a41db3
PLAY RECAP **************************************************************
<IP> : ok=3 changed=0 unreachable=0 failed=0
View gist:afef7bc78e627836e04e8ac66332890b
- name: “update ssh-key to admin user”
authorized_key: user=admin key="SSH_KEY" exclusive=yes
View gist:e5626c7d7ba5d3ff77bd1ceb7a078711
- name: create admin account
user: name=admin shell=/bin/bash
View gist:cf3cc92f3202ffbb095095f526143bb9
- apt: name=logwatch state=present
- cron: name="send logwatch logs" minute="0" hour="0" job="/usr/sbin/logwatch --output mail --mailto --detail high" state=present