ctucx.git: ansible-configs

My personal ansible roles and playbooks [deprecated in favor of nixos]

commit 26cd064ce0331234fe07d35e690d71daab95905e
parent 7303451ef68dc2c3c35639c796cabbbfda487ff8
Author: Leah (ctucx) <leah@ctu.cx>
Date: Fri, 26 Feb 2021 14:15:35 +0100

roles/php-fpm: fix
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/roles/php-fpm/handlers/main.yml b/roles/php-fpm/handlers/main.yml
@@ -7,8 +7,8 @@
     - ansible_service_mgr == "openrc"
   listen: "Restart php-fpm"
 
-- name: "[Archlinux] Check php7-fpm config for errors"
-  shell: php7-fpm -t
+- name: "[Archlinux] Check php-fpm7 config for errors"
+  shell: php-fpm7 -t
   changed_when: True
   when:
     - ansible_service_mgr == "systemd"

@@ -33,9 +33,9 @@
   listen: "Restart php-fpm"
 
 
-- name: "[systemd] Restart service: php7-fpm (to deploy config changes)"
+- name: "[systemd] Restart service: php-fpm7 (to deploy config changes)"
   systemd:
-    name: php7-fpm
+    name: php-fpm7
     state: restarted
   when:
     - ansible_service_mgr == "systemd"
diff --git a/roles/php-fpm/tasks/remove.yml b/roles/php-fpm/tasks/remove.yml
@@ -8,9 +8,9 @@
   when:
     - ansible_service_mgr == "openrc"
 
-- name: "[systemd] Enable and start service: php7-fpm (to deploy config changes)"
+- name: "[systemd] Enable and start service: php-fpm7 (to deploy config changes)"
   systemd:
-    name: php7-fpm
+    name: php-fpm7
     enabled: no
     state: stopped
   when:
diff --git a/roles/php-fpm/tasks/start.yml b/roles/php-fpm/tasks/start.yml
@@ -9,9 +9,9 @@
     - ansible_service_mgr == "openrc"
 
 
-- name: "[systemd] Enable and start service: php7-fpm (to deploy config changes)"
+- name: "[systemd] Enable and start service: php-fpm7 (to deploy config changes)"
   systemd:
-    name: php7-fpm
+    name: php-fpm7
     enabled: yes
     state: started
   when: