Skip to content

Commit

Permalink
Merge pull request #228 from consuldemocracy/add_ubuntu_22.04_support
Browse files Browse the repository at this point in the history
Add Ubuntu 22.04 support
  • Loading branch information
javierm authored Nov 23, 2023
2 parents 29bc5ba + f289b71 commit 7c646ed
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ on:

jobs:
ubuntu:
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.platforms.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
platforms: [
{ os: "ubuntu-20.04", errbit: "True" },
{ os: "ubuntu-22.04", errbit: "False"}
]
rails_env: [staging, production]
steps:
- uses: actions/checkout@v2
Expand All @@ -29,4 +32,4 @@ jobs:
- name: Generate dummy SSH key
run: ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa
- name: Run CONSUL DEMOCRACY installer
run: ansible-playbook consul.yml -i hosts --extra-vars "env=${{ matrix.rails_env }} domain=localhost errbit=True"
run: ansible-playbook consul.yml -i hosts --extra-vars "env=${{ matrix.rails_env }} domain=localhost errbit=${{ matrix.platforms.errbit }}"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ It will also create a `deploy` user to install these libraries
A remote server with one of the supported distributions:

- Ubuntu 20.04 x64
- Ubuntu 22.04 x64
- Debian Bullseye x64

Access to a remote server via public ssh key without password.
Expand Down
8 changes: 8 additions & 0 deletions roles/user/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@
state: present
shell: /bin/bash

- name: Ensure correct permissions of deploy user home directory
file:
path: "{{ home_dir }}"
owner: "{{ deploy_user }}"
group: "{{ deploy_group }}"
mode: 0755
state: directory

- name: Install SSH key
authorized_key:
user: "{{ deploy_user }}"
Expand Down

0 comments on commit 7c646ed

Please sign in to comment.