blob: 187edb23973140904c1e5d4d6c692467ced1e88d (
plain) (
tree)
|
|
- name: Add group
group:
name: "{{ emacsconf_group }}"
- name: Add user
user:
name: "{{ emacsconf_user }}"
group: "{{ emacsconf_group }}"
shell: /bin/bash
# password: "{{ emacsconf_unix_password }}"
- name: Create SSH folder
file:
path: "/home/{{ emacsconf_user }}/.ssh"
owner: "{{ emacsconf_user }}"
group: "{{ emacsconf_group }}"
state: directory
mode: 700
- name: Set up SSH key access
template:
src: authorized_keys
dest: "/home/{{ emacsconf_user }}/.ssh/authorized_keys"
- name: Change ownership of SSH directory
file:
path: "/home/{{ emacsconf_user }}/.ssh"
recurse: true
owner: "{{ emacsconf_user }}"
mode: "u+rwX,g-rwx,o-rwx"
- name: Create bin dir
file:
path: "/home/{{ emacsconf_user }}/bin"
state: directory
owner: "{{ emacsconf_user }}"
- name: Set up bashrc
tags: wip
template:
src: bashrc
dest: "/home/{{ emacsconf_user }}/.bashrc"
owner: "{{ emacsconf_user }}"
group: "{{ emacsconf_group }}"
|