konfigurace vimu

This commit is contained in:
root
2026-09-30 16:38:30 +00:00
parent 56dd1448c0
commit a4d538922e
9 changed files with 108 additions and 108 deletions

View File

@@ -1,24 +1,24 @@
# Jen kopie vim.yml, kterou chci upravit
# Ma za ukol vytvorit uzivatele ansibler, nahrat mu klic, a zrusit klic z roota z onboardingu
# Init Ansible playbook
- name: Konfigurace Vimu
hosts: devtest
- name: Inicializacni Playbook
hosts: all
gather_facts: yes
become: no
remote_user: root
tasks:
- name: Uzivatelske Ucty
- name: Vyrobit uzivatele Ansibler
user:
name: ansibler
create_home: true
comment: "JCH"
shell: "/bin/bash"
- name: instalace sudo
- name: Instalace sudo
apt:
name: sudo
state: present
update_cache: true
- name: ansible sudoer
- name: uzivatel Ansibler bude sudo
copy:
owner: root
group: root
@@ -36,7 +36,7 @@
path: "{{ item.path }}"
loop:
- {path: "/home/ansibler/.ssh"}
- name: SSH klic ansibler
- name: SSH klic uzivatele Ansibler
copy:
owner: ansibler
group: ansibler
@@ -50,5 +50,3 @@
path: /root/.ssh/authorized_keys
state: absent