Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ivsonv/ansible

A powerful tool for applying configurations, which can be used in conjunction with terraform. Ansible provides open-source automation that reduces complexity and runs everywhere. Using Ansible lets you automate virtually any task
https://github.com/ivsonv/ansible

ansible docker playbook

Last synced: about 2 months ago
JSON representation

A powerful tool for applying configurations, which can be used in conjunction with terraform. Ansible provides open-source automation that reduces complexity and runs everywhere. Using Ansible lets you automate virtually any task

Awesome Lists containing this project

README

        

# Ansible
A powerful tool for `applying configurations`, which can be used in `conjunction` with `terraform`.

`Ansible` provides open-source automation that reduces complexity and runs everywhere.

Using Ansible lets you automate virtually any task

* Eliminate repetition and simplify workflows
* Manage and maintain system configuration
* Continuously deploy complex software
* Perform zero-downtime rolling updates

* [Docs Ansible](https://docs.ansible.com/ansible/10/getting_started/index.html)

### Start Local

* inventory -> hosts -> `localhost ansible_connection=local`
![Captura de Tela 2024-07-03 às 20 35 58](https://github.com/ivsonv/Ansible/assets/63156114/7d5a7c61-6853-47af-9d51-fc2975904b03)

### Exec commands
* When starting the nodes, you must enable ssh on the node
```sh
service ssh start
```

* Install package `git` in nodes
```sh
ansible -i hosts all -m apt -a "update_cache=yes name=git state=present"
```

* Remove package `git` in nodes
```sh
ansible -i hosts all -m apt -a "update_cache=yes name=git state=absent"
```

* checkout in repository
```sh
ansible -i hosts all -m git -a "repo=https://github.com/ivsonv/provision-terraform-iac dest=/root/terraform-repo"
```

* full informations the node
```sh
ansible -i hosts node_ansible -m setup
```