creado fichero hosts

This commit is contained in:
Roberto Rodríguez 2024-10-24 15:36:01 +02:00
parent 3c0c89d9f5
commit 70e5e24f38
2 changed files with 21 additions and 3 deletions

6
Vagrantfile vendored
View File

@ -7,9 +7,9 @@ Vagrant.configure("2") do |config|
v.cpus = 3 v.cpus = 3
v.driver = "qemu" v.driver = "qemu"
end end
config.vm.define "master" do |master| config.vm.define "plano-control" do |pcontrol|
master.vm.hostname = "master" pcontrol.vm.hostname = "plano-control"
master.vm.network "private_network", pcontrol.vm.network "private_network",
:libvirt__network_name => "k3s-vagrant", :libvirt__network_name => "k3s-vagrant",
:ip => "10.10.10.10", :ip => "10.10.10.10",
:libvirt__dhcp_enabled => false, :libvirt__dhcp_enabled => false,

18
ansible/hosts Normal file
View File

@ -0,0 +1,18 @@
all:
children:
planos_control:
hosts:
p_nodo:
ansible_ssh_host: 192.168.121.234
ansible_ssh_user: debian
ansible_ssh_private_key_file: ~/.ssh/id_rsa
trabajadores:
hosts:
nodo1:
ansible_ssh_host: 192.168.121.157
ansible_ssh_user: debian
ansible_ssh_private_key_file: ~/.ssh/id_rsa
nodo2:
ansible_ssh_host: 192.168.121.33
ansible_ssh_user: debian
ansible_ssh_private_key_file: ~/.ssh/id_rsa