diff --git a/tasks/install.yml b/tasks/install.yml
index 336389c6e3a68c7fe182d22aeb12cf582c1d6e15..160867d22307ccf27462467e27c56e7567958dbe 100644
--- a/tasks/install.yml
+++ b/tasks/install.yml
@@ -76,7 +76,7 @@
     dest: '{{ webRoot }}/plugins'
     remote_src: yes
   with_items:
-    - https://github.com/dominik-th/matomo-plugin-LoginOIDC/archive/0.1.4.tar.gz
+    - https://plugins.matomo.org/api/2.0/plugins/LoginOIDC/download/0.1.4
   tags:
     - deploy
 
@@ -113,6 +113,15 @@
   tags:
     - always
 
+- name: Enable Plugins
+  command: '{{ webRoot }}/console plugin:activate {{ item }}'
+  become_user: '{{ apacheUser }}'
+  ignore_errors: yes
+  with_items:
+    - LoginOIDC
+  tags:
+    - deploy
+
 - name: File Modes and Ownership
   file:
     path: '{{ webRoot }}'
diff --git a/templates/config.ini.php b/templates/config.ini.php
index 52397f5061eca8db39933d4e215433f96558e28f..36f284543c65a6898b3a812e8373a814cc498b5f 100644
--- a/templates/config.ini.php
+++ b/templates/config.ini.php
@@ -80,7 +80,6 @@ Plugins[] = "Intl"
 Plugins[] = "Marketplace"
 Plugins[] = "Provider"
 Plugins[] = "DoNotTrack"
-Plugins[] = "LoginOIDC"
 Plugins[] = "SecurityInfo"
 
 [PluginsInstalled]
@@ -141,5 +140,3 @@ PluginsInstalled[] = "Diagnostics"
 PluginsInstalled[] = "Intl"
 PluginsInstalled[] = "Marketplace"
 PluginsInstalled[] = "SecurityInfo"
-PluginsInstalled[] = "LoginOIDC"
-PluginsInstalled[] = "TwoFactorAuth"