December 2017
Intermediate to advanced
364 pages
7h 30m
English
This will be like a more traditional approach, with a modern automated method, using Ansible. Some of the items included here are:
- name: create new user user: name: "{{ new_user_name }}" password: "{{ new_user_password }}"
shell: /bin/bash groups: sudo append: yes
- name: add ssh key for new user authorized_key: user: "{{ new_user_name }}" key: "{{ lookup('file', '/home/user/.ssh/id_rsa.pub') }}" state: present
Read now
Unlock full access