Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Debian Bookworm #229

Merged
merged 1 commit into from
Nov 24, 2023
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
6 changes: 2 additions & 4 deletions .github/workflows/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
image: ["debian:bullseye"]
image: ["debian:bullseye", "debian:bookworm"]
rails_env: [staging, production]
container:
image: ${{ matrix.image }}
Expand All @@ -19,9 +19,7 @@ jobs:
- name: Update system packages
run: apt-get update -y
- name: Install needed packages
run: apt-get install -y lsb-release sudo python3-pip openssh-server
- name: Install Ansible
run: pip3 install ansible
run: apt-get install -y lsb-release sudo python3-pip openssh-server ansible
- name: Create hosts file
run: echo "localhost ansible_connection=local ansible_user=root" > hosts
- name: Generate dummy SSH key
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ A remote server with one of the supported distributions:
- Ubuntu 20.04 x64
- Ubuntu 22.04 x64
- Debian Bullseye x64
- Debian Bookworm x64

Access to a remote server via public ssh key without password.
The default user is `deploy` but you can [use any user](#using-a-different-user-than-deploy) with sudo privileges.
Expand Down
13 changes: 7 additions & 6 deletions roles/postgresql/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,18 @@
- become: true
become_user: postgres
block:
- name: Create PostgreSQL database
postgresql_db:
name: "{{ database_name }}"

- name: Create PostgreSQL users
postgresql_user:
state: present
name: "{{ database_user }}"
password: "{{ database_password }}"
db: "{{ database_name }}"
encrypted: yes
priv: ALL

- name: Create PostgreSQL database
postgresql_db:
state: present
name: "{{ database_name }}"
owner: "{{ database_user }}"

- name: Create the shared extensions schema
postgresql_schema:
Expand Down
Loading