Roles: add tasks to ffmwu-server
* ensure system user is present * ensure vim is the default editor * ensure timezone is Europe/Berlin (activate with ansible version 2.2)
This commit is contained in:
parent
cbd190bcf8
commit
1d9b50dbe6
1 changed files with 10 additions and 0 deletions
|
@ -3,6 +3,9 @@
|
||||||
#- name: test key concatenation
|
#- name: test key concatenation
|
||||||
# debug: msg=" would/will set keys; {{ mwu_s_admin_keys ~ ( h_v_add_auth_keys | default('') ) }}"
|
# debug: msg=" would/will set keys; {{ mwu_s_admin_keys ~ ( h_v_add_auth_keys | default('') ) }}"
|
||||||
|
|
||||||
|
- name: ensure needed system users are present
|
||||||
|
user: name=admin comment="Freifunk MWU Admin" shell=/bin/bash state=present
|
||||||
|
|
||||||
- name: ensure all wanted ssh keys exclusively
|
- name: ensure all wanted ssh keys exclusively
|
||||||
authorized_key: exclusive=True state=present user=admin
|
authorized_key: exclusive=True state=present user=admin
|
||||||
key={{ mwu_s_admin_keys ~ ( h_v_add_auth_keys | default('') ) }}
|
key={{ mwu_s_admin_keys ~ ( h_v_add_auth_keys | default('') ) }}
|
||||||
|
@ -27,3 +30,10 @@
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: mwu_s_item
|
loop_var: mwu_s_item
|
||||||
become: True
|
become: True
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
Loading…
Reference in a new issue