2016-07-06 16:34:54 +02:00
|
|
|
---
|
|
|
|
|
2016-07-18 14:59:42 +02:00
|
|
|
#- name: test key concatenation
|
|
|
|
# debug: msg=" would/will set keys; {{ mwu_s_admin_keys ~ ( h_v_add_auth_keys | default('') ) }}"
|
|
|
|
|
2016-10-27 08:19:12 +02:00
|
|
|
- name: ensure needed system users are present
|
|
|
|
user: name=admin comment="Freifunk MWU Admin" shell=/bin/bash state=present
|
|
|
|
|
2016-07-06 16:34:54 +02:00
|
|
|
- name: ensure all wanted ssh keys exclusively
|
|
|
|
authorized_key: exclusive=True state=present user=admin
|
2016-07-18 14:59:42 +02:00
|
|
|
key={{ mwu_s_admin_keys ~ ( h_v_add_auth_keys | default('') ) }}
|
2016-09-14 16:39:21 +02:00
|
|
|
|
|
|
|
- name: ensure some basic packages
|
|
|
|
apt:
|
|
|
|
state: present
|
|
|
|
name: "{{mwu_s_item}}"
|
|
|
|
update_cache: yes
|
|
|
|
cache_valid_time: 21600
|
|
|
|
with_items:
|
|
|
|
- software-properties-common
|
|
|
|
- apt-transport-https
|
|
|
|
- man-db
|
|
|
|
- mosh
|
|
|
|
- ntp
|
|
|
|
- sudo
|
|
|
|
- sysfsutils
|
|
|
|
- vim
|
|
|
|
- vnstat
|
|
|
|
- vnstati
|
|
|
|
loop_control:
|
|
|
|
loop_var: mwu_s_item
|
|
|
|
become: True
|
2016-10-27 08:19:12 +02:00
|
|
|
|
|
|
|
- name: ensure vim is default editor
|
|
|
|
alternatives: name=editor path=/usr/bin/vim.basic
|
|
|
|
|
|
|
|
# enable with ansible version 2.2
|
|
|
|
#- name: set timezone to Europe/Berlin
|
|
|
|
# timezone: name=Europe/Berlin
|