ansible-ffibk/roles/firmware-build-server/tasks/main.yml
Tobias Hachmer 88bee34235 Restructure and update role for firmware build server
* rename role ffmwu-build -> firmware-build-server
* rename playbook build-server to firmware-build-server
2018-07-24 17:09:02 +02:00

26 lines
537 B
YAML

---
- include: packages.yml
- include: git-repos.yml
- include: rsyncd.yml
- 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"