part 2 completed

This commit is contained in:
Ilgar_Naghiyev
2020-03-03 15:34:41 +01:00
parent 88ad588cf3
commit efcb6d281e
4 changed files with 65 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
---
- hosts: labservers
become: yes
tasks:
- name: create users
user:
name: "{{item}}"
with_items:
- sam
- john
- bob

View File

@@ -0,0 +1,10 @@
---
- hosts: labservers
become: yes
tasks:
- name: edit index
lineinfile:
path: /var/www/html/index.html
line: "I'm back!!!"
when:
- ansible_hostname == "innaghiyev1c"