Difference between revisions of "Ansible User Commands"

From rbachwiki
Jump to navigation Jump to search
(Created page with "=Create a user= --- - name: Playbook for creating users hosts: all tasks: - name: create user user: name: robert home: /home/robert shell: /bin/bash")
 
Line 1: Line 1:
=Create a user=
=Create a user=
  ---
  ---
- name: Playbook for creating users
- name: Playbook for creating users
   hosts: all
   hosts: all
   
   

Revision as of 15:55, 23 June 2022

Create a user

---
- name: Playbook for creating users
 hosts: all

 tasks:
   - name: create user
     user: 
       name: robert
       home: /home/robert
       shell: /bin/bash