2018-07-24 17:09:02 +02:00
|
|
|
---
|
2019-03-22 22:18:37 +01:00
|
|
|
- import_tasks: packages.yml
|
|
|
|
- import_tasks: git-repos.yml
|
|
|
|
- import_tasks: rsyncd.yml
|
2018-07-24 17:09:02 +02:00
|
|
|
|
|
|
|
- name: create user maesto
|
|
|
|
user:
|
|
|
|
name: maesto
|
|
|
|
shell: /bin/bash
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: install ssh public key of maesto
|
|
|
|
authorized_key:
|
|
|
|
user: maesto
|
|
|
|
state: present
|
|
|
|
exclusive: yes
|
|
|
|
key: "{{ lookup('file', 'maesto.pub') }}"
|
|
|
|
|
|
|
|
- name: configure passwordless sudo access
|
|
|
|
template:
|
|
|
|
src: "sudoers-maesto.j2"
|
|
|
|
dest: "/etc/sudoers.d/maesto"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: '0440'
|
|
|
|
validate: "/usr/sbin/visudo -cf %s"
|