Parameter | +Choices/Defaults | +Comments | +
---|---|---|
+ allow_update
+
+ boolean
+
+
+
+
+ |
+
+
|
+
+ Boolean that indicates if PM2 should be updated in case in-memory PM2 is out-of-date.
+ If this option is set to no, the module will return an error with out-of-date in-memory PM2.
+ |
+
+ executable
+
+ path
+
+
+
+
+ |
+ + | +
+ The explicit executable or pathname for the pm2 executable.
+ |
+
Attribute | +Support | +Description | +
---|---|---|
+ check_mode + | ++ + full + + + | ++ Can run in check_mode and return changed status prediction withought modifying target. + | +
+ diff_mode + | ++ + + none + + | ++ Will return details on what has changed (or possibly needs changing in check_mode), when in diff mode. + | +
+ facts + | ++ + full + + + | ++ Action returns an ansible_facts dictionary that will update existing host facts. + | +
+ platform + | ++ + posix + + + | ++ Target OS/families that can be operated against. + | +
Key | +Returned | +Description | +|||
---|---|---|---|---|---|
+ pm2
+
+ dictionary
+
+
+
+
+ |
+ success | +
+ Information about PM2.
+ +
+
+ |
+ |||
+ |
+ executable
+
+ string
+
+
+
+
+ |
+ success | +
+ The explicit executable or pathname for the PM2 executable.
+ Sample:
+ "/usr/local/bin/pm2"
+ |
+ ||
+ |
+ processes
+
+ list/elements=dictionary
+
+
+
+
+ |
+ success | +
+ The list of PM2 processes.
+ |
+ ||
+ | + |
+ file
+
+ string
+
+
+
+
+ |
+ success | +
+ The path to the process script file.
+ Sample:
+ "/path/to/script.py"
+ |
+ |
+ | + |
+ id
+
+ integer
+
+
+
+
+ |
+ success | +
+ The PM2 id of the process.
+ Sample:
+ 0
+ |
+ |
+ | + |
+ interpreter
+
+ string
+
+
+
+
+ |
+ success | +
+ The path to the process script interpreter.
+ Sample:
+ "/usr/bin/python3"
+ |
+ |
+ | + |
+ mode
+
+ string
+
+
+
+
+ |
+ success | +
+ The PM2 mode of the process.
+ Sample:
+ "fork_mode"
+ |
+ |
+ | + |
+ monitor
+
+ dictionary
+
+
+
+
+ |
+ success | +
+ The monitoring information about the process.
+ |
+ |
+ | + | + |
+ cpu
+
+ float
+
+
+
+
+ |
+ success | +
+ The CPU percentage used by the process.
+ Sample:
+ 20.7
+ |
+
+ | + | + |
+ memory
+
+ integer
+
+
+
+
+ |
+ success | +
+ The memory used by the process (in Bytes).
+ Sample:
+ 6500352
+ |
+
+ | + | + |
+ restarts
+
+ integer
+
+
+
+
+ |
+ success | +
+ The number of times the process has been restarted.
+ Sample:
+ 5
+ |
+
+ | + |
+ name
+
+ string
+
+
+
+
+ |
+ success | +
+ The name of the process.
+ Sample:
+ "example"
+ |
+ |
+ | + |
+ namespace
+
+ string
+
+
+
+
+ |
+ success | +
+ The namespace of the process.
+ Sample:
+ "default"
+ |
+ |
+ | + |
+ pid
+
+ integer
+
+
+
+
+ |
+ success | +
+ The process ID (PID).
+ Sample:
+ 26741
+ |
+ |
+ | + |
+ status
+
+ string
+
+
+
+
+ |
+ success | +
+ The status of the process.
+ Sample:
+ "online"
+ |
+ |
+ |
+ version
+
+ string
+
+
+
+
+ |
+ success | +
+ The version of the PM2 executable used.
+ Sample:
+ "5.1.2"
+ |
+
Parameter | +Choices/Defaults | +Comments | +
---|---|---|
+ allow_update
+
+ boolean
+
+
+
+
+ |
+
+
|
+
+ Boolean that indicates if PM2 should be updated in case in-memory PM2 is out-of-date.
+ If this option is set to no, the module will return an error with out-of-date in-memory PM2.
+ |
+
+ executable
+
+ path
+
+
+
+
+ |
+ + | +
+ The explicit executable or pathname for the pm2 executable.
+ |
+
+ file
+
+ path
+
+
+
+
+ |
+ + | +
+ The path to the process script file.
+ |
+
+ name
+
+ string/required
+
+
+
+
+ |
+ + | +
+ The name of the process.
+ |
+
+ state
+
+ string
+
+
+
+
+ |
+
+
|
+
+ The state of the process.
+ |
+
Attribute | +Support | +Description | +
---|---|---|
+ check_mode + | ++ + full + + + | ++ Can run in check_mode and return changed status prediction withought modifying target. + | +
+ diff_mode + | ++ + full + + + | ++ Will return details on what has changed (or possibly needs changing in check_mode), when in diff mode. + | +
+ platform + | ++ + posix + + + | ++ Target OS/families that can be operated against. + | +