mirror of
https://github.com/MHA-Team/PTS-Team.git
synced 2026-02-21 05:03:37 +00:00
109 lines
2.8 KiB
Bash
109 lines
2.8 KiB
Bash
#!/bin/bash
|
|
#
|
|
# Title: PGBlitz (Reference Title File)
|
|
# Author(s): Admin9705 - Deiteq
|
|
# URL: https://pgblitz.com - http://github.pgblitz.com
|
|
# GNU: General Public License v3.0
|
|
################################################################################
|
|
---
|
|
- hosts: localhost
|
|
gather_facts: True
|
|
tasks:
|
|
- name: Install Common Packages (Takes Awhile)
|
|
apt: 'name={{item.package}} state=present'
|
|
with_items:
|
|
- { package: 'fuse' }
|
|
- { package: 'fail2ban' }
|
|
- { package: 'update-notifier-common' }
|
|
- { package: 'software-properties-common' }
|
|
- { package: 'unzip' }
|
|
- { package: 'python-pip' }
|
|
- { package: 'glances' }
|
|
- { package: 'python3-pip' }
|
|
- { package: 'python-passlib' }
|
|
- { package: 'zip' }
|
|
- { package: 'curl' }
|
|
- { package: 'man-db' }
|
|
- { package: 'htop' }
|
|
- { package: 'openssh-server' }
|
|
- { package: 'dirmngr' }
|
|
- { package: 'npm' }
|
|
- { package: 'zip' }
|
|
- { package: 'apt-transport-https' }
|
|
- { package: 'ca-certificates' }
|
|
- { package: 'tree' }
|
|
- { package: 'zip' }
|
|
- { package: 'ncdu' }
|
|
- { package: 'ctop' }
|
|
- { package: 'dialog' }
|
|
- { package: 'dnsutils' }
|
|
- { package: 'mc' }
|
|
- { package: 'apache2-utils' }
|
|
- { package: 'lsof' }
|
|
- { package: 'bc' }
|
|
- { package: 'pwgen' }
|
|
- { package: 'gawk' }
|
|
- { package: 'python-lxml' }
|
|
- { package: 'acl' }
|
|
# apt:
|
|
# name:
|
|
# - fuse
|
|
# - nano
|
|
# - fail2ban
|
|
# - wget
|
|
# - lsb-release
|
|
# - figlet
|
|
# - update-notifier-common
|
|
# - software-properties-common
|
|
# - unzip
|
|
# - glances
|
|
# - python-pip
|
|
# - python3-pip
|
|
# - python-passlib
|
|
# - zip
|
|
# - curl
|
|
# - man-db
|
|
# - htop
|
|
# - openssh-server
|
|
# - dirmngr
|
|
# - npm
|
|
# - zip
|
|
# - apt-transport-https
|
|
# - ca-certificates
|
|
# - tree
|
|
# - ncdu
|
|
# - ctop
|
|
# - dialog
|
|
# - dnsutils
|
|
# - mc
|
|
# - apache2-utils
|
|
# - lsof
|
|
# - pwgen
|
|
# - gawk
|
|
# - python-lxml
|
|
# - acl
|
|
# - bc
|
|
- name: Update pip packages for python3
|
|
pip:
|
|
name:
|
|
- pip
|
|
- setuptools
|
|
- pyOpenSSL
|
|
- requests
|
|
- netaddr
|
|
- lxml
|
|
state: latest
|
|
executable: pip3
|
|
|
|
- name: Update pip packages for python2
|
|
pip:
|
|
name:
|
|
- pip
|
|
- setuptools
|
|
- pyOpenSSL
|
|
- requests
|
|
- netaddr
|
|
- lxml
|
|
state: latest
|
|
executable: pip2
|