konec prvni lekce

This commit is contained in:
2025-03-19 08:13:26 +00:00
parent 67f21c1aab
commit eba3e3b8b1
7 changed files with 747 additions and 3 deletions

14
play-1.yml Normal file
View File

@@ -0,0 +1,14 @@
---
- name: Playbook for Bob the user
hosts: all
tasks:
- name: Create Bob the user
user: name=bob shell=/bin/bash comment="User of the machine {{ ansible_hostname }}"
- user: name=linda
- name: Create user picard with comment that contains hostname of the machine
user:
name: picard
shell: /bin/bash
comment: "User of the machine {{ ansible_hostname }} for the purpose of {{ moje_promenna }}"