Add Ansible configuration and playbook for user creation; update Vagrantfile for playbook path
This commit is contained in:
4
ansible/ansible.cfg
Normal file
4
ansible/ansible.cfg
Normal file
@@ -0,0 +1,4 @@
|
||||
[defaults]
|
||||
inventory = hosts
|
||||
remote_user = vagrant
|
||||
private_key_file = ~/.vagrant.d/insecure_private_key
|
2
ansible/hosts
Normal file
2
ansible/hosts
Normal 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
|
9
ansible/vytvor_uzivatele.yml
Normal file
9
ansible/vytvor_uzivatele.yml
Normal 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
|
Reference in New Issue
Block a user