From 2bc536144b587fd2fbd41a2664741afd89dbc4d7 Mon Sep 17 00:00:00 2001 From: Matthew Rider Date: Wed, 9 Oct 2024 08:23:26 +0200 Subject: [PATCH] Fix initial deploy of new instance - 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. --- ansible/roles/initial_setup/defaults/main.yml | 2 +- ansible/roles/initial_setup/tasks/security.yml | 1 - ansible/site.yml | 3 --- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/ansible/roles/initial_setup/defaults/main.yml b/ansible/roles/initial_setup/defaults/main.yml index 54b97aad0..f74388815 100644 --- a/ansible/roles/initial_setup/defaults/main.yml +++ b/ansible/roles/initial_setup/defaults/main.yml @@ -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'] diff --git a/ansible/roles/initial_setup/tasks/security.yml b/ansible/roles/initial_setup/tasks/security.yml index 6e7bf0d98..28e80fe7d 100644 --- a/ansible/roles/initial_setup/tasks/security.yml +++ b/ansible/roles/initial_setup/tasks/security.yml @@ -14,7 +14,6 @@ command: "systemctl restart {{ item }}" with_items: - ssh - - sshd # UFW Setup - name: UFW - Allow SSH connections diff --git a/ansible/site.yml b/ansible/site.yml index 2352cb984..c3ca8b3cf 100644 --- a/ansible/site.yml +++ b/ansible/site.yml @@ -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: