Updated to work with sudo

This commit is contained in:
2026-04-27 16:27:43 -07:00
parent ad69b2da57
commit ec69ddc10a

View File

@@ -96,7 +96,7 @@
# --- Step 4: Force demotion of primary ---
- name: "[CARP/primary] Force CARP demotion on this node (set advskew to 254)"
ansible.builtin.raw: >
php -r "
sudo php -r "
require_once('/etc/inc/interfaces.inc');
interfaces_carp_set_maintenancemode(true);
"
@@ -146,7 +146,7 @@
# ---------------------------------------------------------------------------
- name: "[CARP/primary] Re-enable CARP maintenance mode off (restore advskew)"
ansible.builtin.raw: >
php -r "
sudo php -r "
require_once('/etc/inc/interfaces.inc');
interfaces_carp_set_maintenancemode(false);
"