Skip to content
Merged
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
2 changes: 1 addition & 1 deletion docker/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ENV TINI_VERSION=v0.19.0 \
ZIC=true \
VCPKG_FORCE_SYSTEM_BINARIES=1 \
VCPKG_ROOT=/home/dev/external/vcpkg \
USER=root
USER=dev
# Expose PostgreSQL, Redis, and SSH ports
EXPOSE 5432 6379 22

Expand Down
74 changes: 42 additions & 32 deletions docker/ansible/roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,63 @@
- name: Install core packages
ansible.builtin.apt:
name:
- lsb-release
- wget
- software-properties-common
- gnupg
- build-essential
- autoconf
- libelf-dev
- binutils-dev
- bison
- build-essential
- ca-certificates
- clang-format
- pkg-config
- cmake
- curl
- dnsutils
- emacs-nox
- flex
- g++-14
- gcc-14
- gdb
- git
- gnupg
- gpg
- htop
- iftop
- iproute2
- iputils-ping
- jq
- libbsd-dev
- libdw-dev
- openssh-server
- libdwarf-dev
- binutils-dev
- libelf-dev
- linux-libc-dev
- cmake
- git
- curl
- zip
- unzip
- tar
- lsb-release
- net-tools
- netcat
- ninja-build
- python3
- libbsd-dev
- redis-server
- nmap
- openssh-server
- pkg-config
- postgresql-16
- postgresql-contrib-16
- sudo
- vim
- ca-certificates
- gpg
- emacs-nox
- gcc-14
- g++-14
- gdb
- procps
- python3
- python3-boto3
- python3-jinja2
- python3-lxml
- python3-pip
- python3-psycopg2
- python3-psutil
- python3-psycopg2
- python3-redis
- python3-requests
- python3-yaml
- python3-jinja2
- python3-lxml
- python3-boto3
- net-tools
- jq
- redis-server
- software-properties-common
- sudo
- tar
- traceroute
- unzip
- vim
- wget
- zip

update_cache: true
state: present
autoclean: true
Expand Down
12 changes: 12 additions & 0 deletions docker/ansible/roles/ssh/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,15 @@
path: /etc/ssh/sshd_config
regexp: 'PermitRootLogin prohibit-password'
replace: 'PermitRootLogin yes'

- name: Allow Password Login via SSH
ansible.builtin.replace:
path: /etc/ssh/sshd_config
regexp: '^PasswordAuthentication no'
replace: 'PasswordAuthentication yes'

- name: Ensure SSH service is enabled and started
ansible.builtin.service:
name: ssh
enabled: true
state: started
Loading