-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
1 parent
2cd88bb
commit 8e6d1bb
Showing
7 changed files
with
77 additions
and
20 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
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,41 @@ | ||
# π Jenkins Installation and Uninstallation Playbook | ||
|
||
This Ansible playbook allows for the installation and uninstallation of Jenkins across multiple Linux distributions. It includes cleanup procedures that remove all Jenkins-related files, services, and configurations. | ||
|
||
## π οΈ Usage | ||
|
||
### Install Jenkins | ||
To install Jenkins on your servers, execute the following command: | ||
```bash | ||
ansible-playbook -i inventory.ini ./install_jenkins.yml | ||
``` | ||
# Uninstall Jenkins and Clean Up | ||
To uninstall Jenkins and clean up associated files and services from your servers, use the following command: | ||
```bash | ||
ansible-playbook -i inventory.ini ./uninstall_jenkins.yml | ||
``` | ||
This will: | ||
* Stop all Jenkins services. | ||
* Remove Jenkins packages. | ||
* Remove Jenkins repositories and GPG keys. | ||
* Clean up Jenkins directories (logs, cache, data). | ||
|
||
|
||
# π» Supported Linux Operating Systems | ||
This playbook supports the following Linux distributions: | ||
* π§ **Debian:** 11,12 | ||
* π§ **Ubuntu:** 20.04,22.04 | ||
* π§ **RHEL:** 7,8 | ||
* π§ **Fedora:** 39,40 | ||
|
||
# β Tested Operating Systems | ||
The playbook has been tested on the following OS versions: | ||
* β **Debian:** 11,12 | ||
* β **Ubuntu:** 20.04,22.04 | ||
* β **RHEL:** 7,8 | ||
|
||
# βοΈ Supported Ansible Versions | ||
* β ansible [core 2.16.3] | ||
* βοΈ ansible [core 2.17.3] (compatibility issues) | ||
|
||
> Note: The playbook assumes you are running Ansible as the root user. For non-root users, ensure you have `become` privileges configured. |
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
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
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
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
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