{"id":22922614,"url":"https://github.com/amaurybsouza/devops-cheatsheet","last_synced_at":"2026-04-09T15:48:06.236Z","repository":{"id":40408614,"uuid":"421419705","full_name":"amaurybsouza/devops-cheatsheet","owner":"amaurybsouza","description":"🐧👨‍💻🚀This DevOps cheatsheet helps you with the most commonly and used commands for easy reference like Linux, Ansible, Terraform, Docker, Kubernetes,  AWS Cloud, Git, Gitlab and olthers (constantly updating).","archived":false,"fork":false,"pushed_at":"2023-07-17T12:53:41.000Z","size":155,"stargazers_count":29,"open_issues_count":1,"forks_count":19,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-07T09:14:56.966Z","etag":null,"topics":["ansible","devops","devops-tools","docker","git","github","gitlab","jenkins","kubernetes","linux","nomad","regex","shell-script","shell-scripts","terraform","vim"],"latest_commit_sha":null,"homepage":"https://amaurybsouza.medium.com/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amaurybsouza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":null},"created_at":"2021-10-26T12:40:59.000Z","updated_at":"2024-12-28T16:03:38.000Z","dependencies_parsed_at":"2024-12-14T08:11:33.331Z","dependency_job_id":"31ff58c7-0362-4391-a3f4-cd7ebe6ee5be","html_url":"https://github.com/amaurybsouza/devops-cheatsheet","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaurybsouza%2Fdevops-cheatsheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaurybsouza%2Fdevops-cheatsheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaurybsouza%2Fdevops-cheatsheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amaurybsouza%2Fdevops-cheatsheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amaurybsouza","download_url":"https://codeload.github.com/amaurybsouza/devops-cheatsheet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246656095,"owners_count":20812760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","devops","devops-tools","docker","git","github","gitlab","jenkins","kubernetes","linux","nomad","regex","shell-script","shell-scripts","terraform","vim"],"created_at":"2024-12-14T08:11:19.332Z","updated_at":"2025-12-30T19:14:33.429Z","avatar_url":"https://github.com/amaurybsouza.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# DevOps Cheat-sheet\nThis DevOps cheatsheet helps you with the most commonly and used commands, for easy reference like Linux, Ansible, Terraform, Docker, Kubernetes, AWS Cloud, Git, Gitlab and olthers (constantly updating).\n\nCheat sheets are designed to help users memorize and recall essential information quickly, making them an efficient way to learn and use new technologies. Cheat sheets are available for various technologies, including programming languages, operating systems, databases, network protocols, and software applications. \n\n## Ansible Ad-Hoc Commands\n- Ping all hosts: `ansible all -m ping`\n- Run a shell command on all hosts: `ansible all -a \"/bin/echo hello\"`\n- Get information about all hosts: `ansible all -m setup`\n- Copy a file to all hosts: `ansible all -m copy -a \"src=file.txt dest=/tmp/\"`\n- Install a package on all hosts: `ansible all -m yum -a \"name=nginx state=present\"`\n\n## Ansible Playbooks\n### Basics\nA playbook consists of a list of plays, where each play is a list of tasks to be executed on hosts that match a certain pattern.\nPlaybooks are written in YAML format. Playbooks are executed with the `ansible-playbook` command.\n\n### Example of Playbook\n```yml\n---\n- name: Example playbook\n  hosts: webservers\n  become: true\n  vars:\n    http_port: 80\n    max_clients: 200\n  tasks:\n  - name: Install web server\n    yum:\n      name: httpd\n      state: present\n  - name: Copy index.html\n    copy:\n      src: index.html\n      dest: /var/www/html/\n    notify:\n    - restart apache\n  handlers:\n    - name: restart apache\n      service:\n        name: httpd\n        state: restarted\n```\n\n## Playbook Structure\n- name: The name of the playbook.\n- hosts: The pattern that matches the hosts to be targeted by this playbook.\n- become: If true, Ansible will become root on the remote host before executing tasks.\n- vars: Variables that can be used throughout the playbook.\n- tasks: A list of tasks to be executed on the targeted hosts.\n- handlers: A list of handlers that are notified by tasks.\n\n## Task Structure\n- name: The name of the task.\n- module: The Ansible module to be used for this task.\n- args: The arguments to be passed to the module.\n\n## Handlers\n- Handlers are a special type of task that are only executed when notified by other tasks.\n- Handlers are defined at the bottom of a playbook, after all tasks have been defined.\n- Handlers are notified by tasks using the `notify` keyword.\n\n## Usage\nYou can update the cheatsheet following the model below. Feel free to add a command in portuguese mode or in english. Make sure you have matched with the model below and apply your commands.\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests on commands as appropriate.\n\n## License\n[GNU General Public License v3.0](https://github.com/amaurybsouza/devops-cheatsheet/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famaurybsouza%2Fdevops-cheatsheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famaurybsouza%2Fdevops-cheatsheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famaurybsouza%2Fdevops-cheatsheet/lists"}