https://github.com/darkwizard242/ansible-role-stacer
Ansible role for Stacer. Available on Ansible Galaxy.
https://github.com/darkwizard242/ansible-role-stacer
ansible ansible-galaxy ansible-role linux linux-monitoring optimizer stacer
Last synced: 2 months ago
JSON representation
Ansible role for Stacer. Available on Ansible Galaxy.
- Host: GitHub
- URL: https://github.com/darkwizard242/ansible-role-stacer
- Owner: darkwizard242
- License: mit
- Created: 2020-11-01T23:01:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-01T21:52:52.000Z (almost 2 years ago)
- Last Synced: 2025-01-11T09:04:17.945Z (over 1 year ago)
- Topics: ansible, ansible-galaxy, ansible-role, linux, linux-monitoring, optimizer, stacer
- Language: Python
- Homepage: https://galaxy.ansible.com/darkwizard242/stacer
- Size: 35.2 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/darkwizard242/ansible-role-stacer/actions?query=workflow%3Abuild-and-test) [](https://github.com/darkwizard242/ansible-role-stacer/actions?query=workflow%3Arelease)  [](https://sonarcloud.io/dashboard?id=ansible-role-stacer) [](https://sonarcloud.io/dashboard?id=ansible-role-stacer) [](https://sonarcloud.io/dashboard?id=ansible-role-stacer)  
# Ansible Role: stacer
Role to install (_by default_) [stacer](https://oguzhaninan.github.io/Stacer-Web/#features) or uninstall (_if passed as var_) on **Ubuntu** systems.
## Requirements
None.
## Role Variables
Available variables are listed below (located in `defaults/main.yml`):
### Variables list:
```yaml
stacer_app: stacer
stacer_app_desired_state: present
stacer_ubuntu_repo: 'ppa:oguzhaninan/stacer'
stacer_ubuntu_repo_desired_state: present
stacer_ubuntu_repo_filename: stacer
```
### Variables table:
Variable | Description
-------------------------------- | -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
stacer_app | Defines the app to install i.e. **stacer**
stacer_package_desired_state | Defined to dynamically chose whether to install (i.e. either `present` or `latest`) or uninstall (i.e. `absent`) the package. Default is set to `present`.
stacer_ubuntu_repo | Refers to the ppa repo to add. _Applies only to Ubuntu (16.04 and 18.04) systems, not required for Ubuntu 20.04 systems._
stacer_ubuntu_repo_desired_state | Defined to dynamically chose whether to add/keep (i.e. `present`) or remove (i.e. `absent`) the repository file list from `/etc/apt/sources.list.d`. _Applies only to Ubuntu (16.04 and 18.04) systems, not required for Ubuntu 20.04 systems._
stacer_ubuntu_repo_filename | Defined to set the repository file name for saving in `/etc/apt/sources.list.d`. _Applies only to Ubuntu (16.04 and 18.04) systems, not required for Ubuntu 20.04 systems._
## Dependencies
None
## Example Playbook
For default behaviour of role (i.e. installation of **stacer** package) in ansible playbooks.
```yaml
- hosts: servers
roles:
- darkwizard242.stacer
```
For customizing behavior of role (i.e. installation of latest **stacer** package) in ansible playbooks.
```yaml
- hosts: servers
roles:
- darkwizard242.stacer
vars:
stacer_package_desired_state: latest
```
For customizing behavior of role (i.e. un-installation of **stacer** package) in ansible playbooks.
```yaml
- hosts: servers
roles:
- darkwizard242.stacer
vars:
stacer_package_desired_state: absent
```
## License
[MIT](https://github.com/darkwizard242/ansible-role-stacer/blob/master/LICENSE)
## Author Information
This role was created by [Ali Muhammad](https://www.alimuhammad.dev/).