Eutychus Towett
Posted on September 29, 2021
Linux is a multi user system, this means you can create multiple users.
To create user use this:
- name: Create user on a linux server
hosts: remote-server
become: yes
gather_facts: false
vars:
- user: rocky
- password: $6$OmUdHERAMzqjcbvb$bKp/b76h7EZ1EpFuXeN7ygvyzBgbZUdyQOK6seakitssSSrfYS50.JcXXsWxyBu7tUehMJGvB0alPR.Ls3BOR/
tasks:
- name: Create a login user
user:
name: "{{ user }}"
password: "{{ password }}"
groups:
- wheel
state: present
Please check out this blog post on Citizix here
💖 💪 🙅 🚩
Eutychus Towett
Posted on September 29, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
undefined Streamlining Infrastructure Management: Provisioning Google Cloud VMs with Ansible
April 23, 2023