Skip to content

Commit

Permalink
Fix initial deploy of new instance
Browse files Browse the repository at this point in the history
- sshd service is not created for Ubuntu 24 LTS
- attempting to install passlib with pip results in the externally
  managed error. We can install it on the Ubuntu server, as we do
locally to be able to run the task Add traefik admin user with htpasswd
file in the installation role.
  • Loading branch information
mattwr18 committed Oct 22, 2024
1 parent c8dff37 commit 2bc5361
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion ansible/roles/initial_setup/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
create_user: ansible
copy_local_key: "{{ lookup('file', lookup('env','HOME') + '/.ssh/id_rsa.pub') }}"
sys_packages: [ 'curl', 'vim', 'git', 'ufw']
sys_packages: [ 'curl', 'vim', 'git', 'ufw', 'python3-passlib']
1 change: 0 additions & 1 deletion ansible/roles/initial_setup/tasks/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
command: "systemctl restart {{ item }}"
with_items:
- ssh
- sshd

# UFW Setup
- name: UFW - Allow SSH connections
Expand Down
3 changes: 0 additions & 3 deletions ansible/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
- role: initial_setup
- role: gantsign.inotify
inotify_max_user_watches: 524288
- role: geerlingguy.pip
pip_install_packages:
- name: passlib
- role: geerlingguy.docker
docker_packages_state: latest
vars:
Expand Down

0 comments on commit 2bc5361

Please sign in to comment.