0
0

Compare commits

...

3 Commits

Author SHA1 Message Date
20b8fe9051 remove badges from README.md
remove badges from readme as i don't want any external references in here
2023-10-01 12:48:39 +02:00
eabadfcb28 added ansible.cfg for hosts file 2023-01-19 21:32:55 +01:00
c06d2e9197 transformed hosts file into yaml file 2023-01-19 21:23:39 +01:00
3 changed files with 16 additions and 10 deletions

View File

@@ -1,7 +1,5 @@
# Ansible-Boilerplate
[![GitHub Issues](https://img.shields.io/github/issues/acch/ansible-boilerplate.svg)](https://github.com/acch/ansible-boilerplate/issues) [![GitHub Stars](https://img.shields.io/github/stars/acch/ansible-boilerplate.svg?label=github%20%E2%98%85)](https://github.com/acch/ansible-boilerplate/) [![License](https://img.shields.io/github/license/acch/ansible-boilerplate.svg)](LICENSE)
[Ansible](https://www.ansible.com/) is a configuration management tool, similar to [Chef](https://www.chef.io/) and [Puppet](https://puppet.com/). It allows for performing logical configuration of infrastructure components, such as servers and network switches. The configuration files in this repository can act as a template for your own Ansible projects, in order to get you started quickly. Once you've customized the configuration files then new servers can be configured quickly — excluding their network configuration. This means that adding new servers is as simple as:
- Base OS installation of new server

2
ansible.cfg Normal file
View File

@@ -0,0 +1,2 @@
[defaults]
inventory=hosts.yml

View File

@@ -9,13 +9,19 @@
# - You can enter hostnames or ip addresses
# - A hostname/ip can be a member of multiple groups
[anygroup]
server1 ansible_host=192.168.0.1
server2 ansible_host=192.168.0.2
server3 ansible_host=192.168.0.3
server4 ansible_host=192.168.0.4
anygroup:
hosts:
server1:
ansible_host: 192.168.0.1
server2:
ansible_host: 192.168.0.2
server3:
ansible_host: 192.168.0.3
server4:
ansible_host: 192.168.0.4
# Add your own groups here. Hosts can be added to multiple groups like so:
# [anothergroup]
# server[1:3]
# anotherserver ansible_host=192.168.0.10
# anothergroup:
# server[1:3]:
# anotherserver:
# ansible_host: 192.168.0.10