Ansible User Commands

From rbachwiki
Revision as of 15:54, 23 June 2022 by Bacchas (talk | contribs) (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")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Create a user

---

- name: Playbook for creating users

 hosts: all

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