mirror of
https://github.com/JockeTF/fimfarchive.git
synced 2024-11-28 16:07:58 +01:00
46 lines
912 B
YAML
46 lines
912 B
YAML
---
|
|
#
|
|
# Prepares system for OpenTracker.
|
|
#
|
|
|
|
- name: Install build dependencies
|
|
apt:
|
|
name: "{{ item }}"
|
|
state: present
|
|
with_items:
|
|
- build-essential
|
|
- git
|
|
- libowfat-dev
|
|
- zlib1g-dev
|
|
|
|
- name: Create UNIX group
|
|
group:
|
|
name: "{{ opentracker.user }}"
|
|
system: yes
|
|
state: present
|
|
|
|
- name: Create UNIX user
|
|
user:
|
|
name: "{{ opentracker.user }}"
|
|
group: "{{ opentracker.user }}"
|
|
home: "{{ opentracker.home }}"
|
|
createhome: yes
|
|
skeleton: yes
|
|
system: yes
|
|
state: present
|
|
|
|
- name: Create SSH directory
|
|
file:
|
|
path: "{{ opentracker.home }}/.ssh"
|
|
owner: "{{ opentracker.user }}"
|
|
group: "{{ opentracker.user }}"
|
|
mode: 0500
|
|
state: directory
|
|
|
|
- name: Configure SSH hosts
|
|
copy:
|
|
src: known_hosts
|
|
dest: "{{ opentracker.home }}/.ssh/known_hosts"
|
|
owner: "{{ opentracker.user }}"
|
|
group: "{{ opentracker.user }}"
|
|
mode: 0400
|