Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ivsonv/ansible
- Owner: ivsonv
- Created: 2024-07-03T23:23:21.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-17T00:25:00.000Z (6 months ago)
- Last Synced: 2024-07-17T03:41:55.072Z (6 months ago)
- Topics: ansible, docker, playbook
- Language: Dockerfile
- Homepage: https://docs.ansible.com/ansible/latest/getting_started/index.html
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```