From 57ffbe0c2c0d91d7c26c7716237bd94b8162fe91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rkus=20S=C3=A1ndor?= Date: Wed, 28 Jun 2023 17:06:08 +0200 Subject: [PATCH] first upload --- ansible.cfg | 17 +++++++++++++++++ inventory/inventory.yml | 21 +++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 ansible.cfg create mode 100644 inventory/inventory.yml diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..47ae8e4 --- /dev/null +++ b/ansible.cfg @@ -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 diff --git a/inventory/inventory.yml b/inventory/inventory.yml new file mode 100644 index 0000000..5b59a09 --- /dev/null +++ b/inventory/inventory.yml @@ -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