16 lines
390 B
YAML
16 lines
390 B
YAML
---
|
|
- name: Create standardized admin on all hosts
|
|
hosts: virtual_machines
|
|
become: true
|
|
vars:
|
|
username: serveradmin
|
|
password: "Cinnamonbun89$"
|
|
tasks:
|
|
- name: Create the standard user on the host
|
|
ansible.builtin.user:
|
|
name: "{{ username }}"
|
|
state: present
|
|
shell: /bin/bash
|
|
create_home: true
|
|
groups: sudo
|
|
append: true |