Updated to work with sudo
This commit is contained in:
@@ -96,7 +96,7 @@
|
|||||||
# --- Step 4: Force demotion of primary ---
|
# --- Step 4: Force demotion of primary ---
|
||||||
- name: "[CARP/primary] Force CARP demotion on this node (set advskew to 254)"
|
- name: "[CARP/primary] Force CARP demotion on this node (set advskew to 254)"
|
||||||
ansible.builtin.raw: >
|
ansible.builtin.raw: >
|
||||||
php -r "
|
sudo php -r "
|
||||||
require_once('/etc/inc/interfaces.inc');
|
require_once('/etc/inc/interfaces.inc');
|
||||||
interfaces_carp_set_maintenancemode(true);
|
interfaces_carp_set_maintenancemode(true);
|
||||||
"
|
"
|
||||||
@@ -146,7 +146,7 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
- name: "[CARP/primary] Re-enable CARP maintenance mode off (restore advskew)"
|
- name: "[CARP/primary] Re-enable CARP maintenance mode off (restore advskew)"
|
||||||
ansible.builtin.raw: >
|
ansible.builtin.raw: >
|
||||||
php -r "
|
sudo php -r "
|
||||||
require_once('/etc/inc/interfaces.inc');
|
require_once('/etc/inc/interfaces.inc');
|
||||||
interfaces_carp_set_maintenancemode(false);
|
interfaces_carp_set_maintenancemode(false);
|
||||||
"
|
"
|
||||||
|
|||||||
Reference in New Issue
Block a user