Commit 2a6ceb28 authored by Akshay's avatar Akshay

New Commit

parent f795d8fe
- hosts: all
tasks:
- name: Creating new user
user:
name: azeo2020
password: $6$7HLRy9mSGUYI$sDEFdHv66EPmPpSOYN.AlGSQubf/dSnYY1xaEBj.7YywDy7bmrnyUlJQwHIdizJjv3D2YNjPQLRVnSzBp11V6/
create_home: yes
state: present
update_password: always
- name: Change file ownership, group and permissions
file:
path: /mnt
owner: azeo2020
group: azeo2020
mode: '0777'
- name: Copy file with owner and permissions
copy:
src: /tftpboot/Azeo2020.ova
dest: /mnt
owner: azeo2020
group: azeo2020
mode: '0744'
unsafe_writes: yes
- hosts: all
gather_facts: no
tasks:
- name: Installing multiple python packages in Ansible
user:
name: cs101local
password: $6$U68wPm/kT7$j60vTE7aGJk52mgrD0HVOp.zAKcb0M3iQ4zLpf0n2BhEgrhN/Kp4OrOmB5VGJMkKqFAPjdZ4I6sT/1MbZuyaq/
create_home: yes
state: present
update_password: always
- hosts: all
tasks:
- name: Delete user
user:
name: student
# password: $6$U68wPm/kT7$j60vTE7aGJk52mgrD0HVOp.zAKcb0M3iQ4zLpf0n2BhEgrhN/Kp4OrOmB5VGJMkKqFAPjdZ4I6sT/1MbZuyaq/
state: absent
remove: yes
force: yes
#update_password: always
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment