Add Ansible configuration and playbook for user creation; update Vagrantfile for playbook path

This commit is contained in:
martin.cholewa
2025-07-08 18:14:26 +02:00
parent 9629f634e1
commit 43827881fb
4 changed files with 1 additions and 1 deletions

4
ansible/ansible.cfg Normal file
View File

@@ -0,0 +1,4 @@
[defaults]
inventory = hosts
remote_user = vagrant
private_key_file = ~/.vagrant.d/insecure_private_key

2
ansible/hosts Normal file
View File

@@ -0,0 +1,2 @@
[kube]
kube01 ansible_host=127.0.0.1 ansible_port=2030 ansible_user=vagrant ansible_ssh_private_key_file=.vagrant/machines/kube01/vmware_fusion/private_key

View File

@@ -0,0 +1,9 @@
---
- hosts: all
become: yes
tasks:
- name: Přidat uživatele "novyuzivatel"
user:
name: novyuzivatel
shell: /bin/bash
create_home: yes