-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9ca1e5a
Showing
18 changed files
with
2,128 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# CHANGELOG | ||
|
||
## 1.0.0 (2022-01-20) | ||
|
||
### Features | ||
- Initial release |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# PM2 Ansible Collection | ||
|
||
The Parallel Multithreaded Machine (PM2) Ansible collection includes Ansible modules to help the management of PM2 processes. | ||
|
||
This collection has been tested against following PM2 versions: **>=4.2.0**. | ||
|
||
|
||
## Ansible version compatibility | ||
|
||
This collection has been tested against following Ansible versions: **>=2.10.0**. | ||
|
||
Plugins and modules within a collection may be tested with only specific Ansible versions. | ||
A collection may contain metadata that identifies these versions. | ||
PEP440 is the schema used to describe the versions of Ansible. | ||
|
||
|
||
## Included content | ||
|
||
### Modules | ||
Name | Description | ||
--- | --- | ||
[just1not2.pm2.pm2_facts](./docs/pm2_facts_module.rst)|Return PM2 information as fact data | ||
[just1not2.pm2.pm2_process](./pm2_process_module.rst)|Manage PM2 processes | ||
|
||
|
||
## Installing this collection | ||
|
||
To install this collection, you must first clone this repository, build the collection from source code and launch the installation with the `ansible-galaxy` CLI utility (replace `x.y.z` with the current version of this collection): | ||
|
||
```sh | ||
git clone https://github.com/just1not2/ansible-collection-pm2.git | ||
cd ansible-collection-pm2 | ||
ansible-galaxy collection build | ||
ansible-galaxy collection install just1not2-pm2-x.y.z.tar.gz | ||
``` | ||
|
||
|
||
## Using this collection | ||
|
||
You can either call modules by their Fully Qualified Collection Namespace (FQCN), such as `just1not2.pm2.pm2_facts`, or you can call modules by their short name if you list the `just1not2.pm2` collection in the playbook's collections keyword: | ||
|
||
```yaml | ||
--- | ||
- name: Populate PM2 facts | ||
just1not2.pm2.pm2_facts: | ||
|
||
- name: Print the list of PM2 processes | ||
debug: | ||
var: ansible_facts.pm2.processes | ||
|
||
- name: Make sure PM2 example process is running | ||
just1not2.pm2.pm2_process: | ||
name: example | ||
file: /path/to/script.py | ||
state: started | ||
``` | ||
## See Also | ||
* [PM2 official documentation](https://doc.pm2.io) | ||
* [Ansible Using collections](https://docs.ansible.com/ansible/latest/user_guide/collections_using.html) for more details | ||
## Contributing to this collection | ||
This collection started as personal project, but I welcome community contributions to this collection. If you find problems, please open an issue or create a PR against the [PM2 collection repository](https://github.com/just1not2/ansible-collection-pm2). | ||
You can also reach me by email at `[email protected]`. | ||
|
||
|
||
## Licensing | ||
|
||
GNU General Public License v3.0 or later. | ||
|
||
See [LICENSE](./LICENCE) to see the full text. | ||
|
||
|
||
## Author Information | ||
|
||
This collection was created in 2022 by Justin Béra. |
Oops, something went wrong.