31 lines
669 B
YAML
Raw Normal View History

---
# Create users for both desktop and server machines.
# Scheduler
2021-02-02 21:28:17 -06:00
- name: General | Account Management | User | Ansible
user:
name: ansible
comment: Ansible
system: yes
# Superuser
2021-02-02 21:28:17 -06:00
- name: General | Account Management | User | Hyperling
user:
name: ling
comment: Hyperling
groups:
- sudo
append: yes
2021-02-02 20:55:06 -06:00
shell: "{{ bash_exec.stdout }}"
create_home: yes
generate_ssh_key: yes
#password: "{{ ling_passwd }}"
register: user_ling
- name: General | Account Management | User | Hyperling TRASH Folder
file:
path: "{{ user_ling.home }}/TRASH"
state: directory
mode: '0755'
when: user_ling.home != ""