{"id":15081305,"url":"https://github.com/fwesleycosta/ansible-roles","last_synced_at":"2026-03-07T20:03:09.274Z","repository":{"id":254585412,"uuid":"846764392","full_name":"FWesleycosta/Ansible-roles","owner":"FWesleycosta","description":"This repository is dedicated to storing a collection of diverse roles designed to be executed within the Ansible. These roles aim to automate various tasks and streamline the configuration and management processes in our infrastructure.","archived":false,"fork":false,"pushed_at":"2024-08-24T14:46:55.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-08T04:43:00.146Z","etag":null,"topics":["ansible","ansible-roles"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FWesleycosta.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-23T22:56:14.000Z","updated_at":"2024-08-24T14:48:28.000Z","dependencies_parsed_at":"2024-08-24T15:20:20.951Z","dependency_job_id":"b7ed9ec5-83a4-4162-955d-d1bbbdfd03d8","html_url":"https://github.com/FWesleycosta/Ansible-roles","commit_stats":null,"previous_names":["fwesleycosta/ansible-roles"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/FWesleycosta/Ansible-roles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FWesleycosta%2FAnsible-roles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FWesleycosta%2FAnsible-roles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FWesleycosta%2FAnsible-roles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FWesleycosta%2FAnsible-roles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FWesleycosta","download_url":"https://codeload.github.com/FWesleycosta/Ansible-roles/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FWesleycosta%2FAnsible-roles/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30229589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T19:01:10.287Z","status":"ssl_error","status_checked_at":"2026-03-07T18:59:58.103Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-roles"],"created_at":"2024-09-25T06:00:28.587Z","updated_at":"2026-03-07T20:03:09.238Z","avatar_url":"https://github.com/FWesleycosta.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansible-roles\n\n[![Docker](https://img.shields.io/badge/Docker-27.1.1-blue.svg)](https://www.docker.com/)\n[![Ansible](https://img.shields.io/badge/Ansible-2.15.10-blue.svg)](https://www.ansible.com/)\n[![Python](https://img.shields.io/badge/Python-3.9.6-blue.svg)](https://www.python.org/)\n[![GitHub](https://img.shields.io/badge/GitHub-ansible--modules-blue.svg)]()\n[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n\n## Description\n\nThis is repository contains custom Ansible roles that can be used to automate tasks in a Linux environment. The roles are written in language Yaml and can be used to perform various tasks, such as installing packages, managing users, and configuring services.\n\n## Roles Overview\n\nThe following roles are available in this repository:\n\n- **[Chrony](roles/chrony)**: Installs and configures the Chrony NTP service on a host machine.\n- **[Commons](roles/commons)**: Performs basic hardening of a Linux system, including installing essential packages, adding a user to the sudo group, and setting a custom MOTD.\n- **[Docker](roles/docker)**: Installs Docker on a host machine and configures Docker Compose and related settings.\n\n\n## Requirements\n\nTo use these roles, you need to have Ansible installed on your system. You can install Ansible using the following command:\n\n```bash\npip install ansible\n```\n\nYou also need to have a basic understanding of Ansible and how to create playbooks to run the roles on your target hosts.\n\n\n## How to Use\n\nTo use these roles, you need to have Ansible installed on your system. You can then create a playbook that includes the roles you want to run on your target hosts. For example, to run the `commons` role on a group of servers, you can create a playbook like this:\n\n```yaml\n- hosts: servers\n  roles:\n    - { role: commons, tags: commons }\n```\n\nYou can then run the playbook using the `ansible-playbook` command:\n\n```bash\nansible-playbook -i inventory playbook.yml\n```\n\nReplace `inventory` with the path to your inventory file and `playbook.yml` with the path to your playbook file.\n\n### Example Create a inventory file\n\n```bash\necho \"[servers]\" \u003e inventory\necho \"server1 ansible_host=xx.xx.xx.xx\" \u003e\u003e inventory\necho \"server2 ansible_host=xx.xx.xx.xx\" \u003e\u003e inventory\n```\n\n### Example Create a playbook file\n\n```bash\necho \"- hosts: servers\" \u003e playbook.yml\necho \"  roles:\" \u003e\u003e playbook.yml\necho \"    - { role: commons, tags: commons }\" \u003e\u003e playbook.yml\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffwesleycosta%2Fansible-roles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffwesleycosta%2Fansible-roles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffwesleycosta%2Fansible-roles/lists"}