1
1

first upload

This commit is contained in:
Márkus Sándor 2023-06-28 17:06:08 +02:00
parent 06a964dfb2
commit 57ffbe0c2c
2 changed files with 38 additions and 0 deletions

17
ansible.cfg Normal file
View File

@ -0,0 +1,17 @@
[defaults]
host_key_checking = False
inventory = ./inventory/inventory.yml
log_path = log/ansible.log
timeout = 5
deprecation_warnings = False
command_warnings = False
interpreter_python = auto_legacy_silent
ansible_managed = This file is managed by Ansible, all changes will be lost! PLEASE DO NOT EDIT!%n
template: {file}
date: %Y.%m.%d. %H:%M:%S
user: {uid}
host: {host}
[ssh_connection]
scp_if_ssh=True

21
inventory/inventory.yml Normal file
View File

@ -0,0 +1,21 @@
---
all:
hosts:
localhost:
children:
servers:
vars:
ansible_ssh_user: vagrant
hosts:
vm1:
ansible_host: 192.168.56.2
ansible_ssh_private_key_file: .vagrant/machines/vm1/virtualbox/private_key
vm2:
ansible_host: 192.168.56.3
ansible_ssh_private_key_file: .vagrant/machines/vm2/virtualbox/private_key
vm3:
ansible_host: 192.168.56.4
ansible_ssh_private_key_file: .vagrant/machines/vm3/virtualbox/private_key
vm4:
ansible_host: 192.168.56.5
ansible_ssh_private_key_file: .vagrant/machines/vm4/virtualbox/private_key