Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
# install security configuration
- name: ensure python packages are installed
apt:
name: "{{ item }}"
name: ['python3-pip', 'python3-dev', 'fail2ban']
update_cache: yes
become: yes
with_items:
- "python3-pip"
- "python3-dev"
- "fail2ban"


- name: enable SSH within the firewall
ufw: rule=allow port=22
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
# install and configure PostgreSQL database
- name: ensure postgresql database packages are installed
apt: name={{ item }}
with_items:
- postgresql
- libpq-dev
- python3-psycopg2
- postgresql-client
- postgresql-client-common
apt:
name: ['postgresql', 'libpq-dev', 'python3-psycopg2', 'postgresql-client', 'postgresql-client-common']
become: yes


Expand Down