|
123456789101112131415161718192021222324252627282930313233343536373839 |
- #
- # Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
- #
- - name: Set hostname to {{ hostname }}
- hostname:
- name: '{{ hostname }}'
-
- - name: Update packages
- apt:
- update_cache: yes
-
- - name: Remove ufw
- apt:
- name: ufw
- state: absent
- update_cache: yes
-
- - name: Upgrade packages
- apt:
- update_cache: yes
- upgrade: yes
-
- - name: Install common packages
- apt:
- name: [ 'ntp', 'unzip', 'safe-rm', 'supervisor', 'emacs-nox', 'screen', 'xtail', 'fail2ban' ]
- state: present
- update_cache: yes
-
- - name: Install screenrc file
- copy:
- src: dot-screenrc
- dest: /root/.screenrc
-
- - name: Start common services
- service:
- name: '{{ item }}'
- state: restarted
- with_items:
- - fail2ban
|