Execution
Date 10 Oct 2024 16:50:35 +0100
Duration 00:00:03.87
Controller ssh-gw-4.layershift.com
User root
Versions
Ansible 2.16.11
ara 1.7.2 / 1.7.2
Python 3.10.10
Summary
5 Hosts
1 Tasks
5 Results
1 Plays
1 Files
0 Records

Task result details


Field Value
changed
True
cmd
su -l zimbra -c "zmprov -s `zmhostname` flushCache config or -a "
delta
0:00:02.144134
end
2024-10-10 15:50:38.306496
invocation
{
    "module_args": {
        "_raw_params": "su -l zimbra -c \"zmprov -s `zmhostname` flushCache config or -a \"",
        "_uses_shell": true,
        "argv": null,
        "chdir": null,
        "creates": null,
        "executable": null,
        "expand_argument_vars": true,
        "removes": null,
        "stdin": null,
        "stdin_add_newline": true,
        "strip_empty_ends": true
    }
}
msg
non-zero return code
rc
1
start
2024-10-10 15:50:36.162362
stderr
/bin/sh: zmhostname: command not found
stderr_lines
[
    "/bin/sh: zmhostname: command not found"
]
stdout
zmprov [args] [cmd] [cmd-args ...]

  -h/--help                             display usage
  -f/--file                             use file as input stream
  -s/--server   {host}[:{port}]         server hostname and optional port
  -l/--ldap                             provision via LDAP instead of SOAP
  -L/--logpropertyfile                  log4j property file, valid only with -l
  -a/--account  {name}                  account name to auth as
  -p/--password {pass}                  password for account
  -P/--passfile {file}                  read password from file
  -z/--zadmin                           use zimbra admin name/password from localconfig for admin/password
  -y/--authtoken {authtoken}            use auth token string (has to be in JSON format) from command line
  -Y/--authtokenfile {authtoken file}   read auth token (has to be in JSON format) from a file
  -v/--verbose                          verbose mode (dumps full exception stack trace)
  -d/--debug                            debug mode (dumps SOAP messages)
  -m/--master                           use LDAP master (only valid with -l)
  -r/--replace                          allow replacement of safe-guarded multi-valued attributes configured in localconfig key "zmprov_safeguarded_attrs"

 zmprov is used for provisioning. Try:

     zmprov help account         help on account-related commands
     zmprov help calendar        help on calendar resource-related commands
     zmprov help commands        help on all commands
     zmprov help config          help on config-related commands
     zmprov help cos             help on COS-related commands
     zmprov help domain          help on domain-related commands
     zmprov help freebusy        help on free/busy-related commands
     zmprov help list            help on distribution list-related commands
     zmprov help log             help on logging commands
     zmprov help misc            help on misc commands
     zmprov help mailbox         help on mailbox-related commands
     zmprov help reverseproxy    help on reverse proxy related commands
     zmprov help right           help on right-related commands
     zmprov help search          help on search-related commands
     zmprov help server          help on server-related commands
     zmprov help alwaysoncluster help on alwaysOnCluster-related commands
     zmprov help ucservice       help on ucservice-related commands
     zmprov help share           help on share related commands
     zmprov help hab             help on HAB commands
     zmprov help mobile          help on mobile devices management commands
stdout_lines
[
    "",
    "zmprov [args] [cmd] [cmd-args ...]",
    "",
    "  -h/--help                             display usage",
    "  -f/--file                             use file as input stream",
    "  -s/--server   {host}[:{port}]         server hostname and optional port",
    "  -l/--ldap                             provision via LDAP instead of SOAP",
    "  -L/--logpropertyfile                  log4j property file, valid only with -l",
    "  -a/--account  {name}                  account name to auth as",
    "  -p/--password {pass}                  password for account",
    "  -P/--passfile {file}                  read password from file",
    "  -z/--zadmin                           use zimbra admin name/password from localconfig for admin/password",
    "  -y/--authtoken {authtoken}            use auth token string (has to be in JSON format) from command line",
    "  -Y/--authtokenfile {authtoken file}   read auth token (has to be in JSON format) from a file",
    "  -v/--verbose                          verbose mode (dumps full exception stack trace)",
    "  -d/--debug                            debug mode (dumps SOAP messages)",
    "  -m/--master                           use LDAP master (only valid with -l)",
    "  -r/--replace                          allow replacement of safe-guarded multi-valued attributes configured in localconfig key \"zmprov_safeguarded_attrs\"",
    "",
    " zmprov is used for provisioning. Try:",
    "",
    "     zmprov help account         help on account-related commands",
    "     zmprov help calendar        help on calendar resource-related commands",
    "     zmprov help commands        help on all commands",
    "     zmprov help config          help on config-related commands",
    "     zmprov help cos             help on COS-related commands",
    "     zmprov help domain          help on domain-related commands",
    "     zmprov help freebusy        help on free/busy-related commands",
    "     zmprov help list            help on distribution list-related commands",
    "     zmprov help log             help on logging commands",
    "     zmprov help misc            help on misc commands",
    "     zmprov help mailbox         help on mailbox-related commands",
    "     zmprov help reverseproxy    help on reverse proxy related commands",
    "     zmprov help right           help on right-related commands",
    "     zmprov help search          help on search-related commands",
    "     zmprov help server          help on server-related commands",
    "     zmprov help alwaysoncluster help on alwaysOnCluster-related commands",
    "     zmprov help ucservice       help on ucservice-related commands",
    "     zmprov help share           help on share related commands",
    "     zmprov help hab             help on HAB commands",
    "     zmprov help mobile          help on mobile devices management commands"
]