konfigurace vimu
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user