part 1 completed

This commit is contained in:
Ilgar_Naghiyev
2020-03-03 14:44:22 +01:00
parent fb5720121c
commit 88ad588cf3
5 changed files with 88 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
---
- hosts: labservers
tasks:
- name: create file
file:
path: /tmp/newfile
state: touch
register: output
- debug: msg="Register output is {{output}}"
- name: edit file
lineinfile:
path: /tmp/newfile
line: "{{output.uid}}"