konec prvni lekce
This commit is contained in:
14
play-1.yml
Normal file
14
play-1.yml
Normal 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 }}"
|
||||
Reference in New Issue
Block a user