Skip to content

Commit

Permalink
Merge pull request #33 from sebschlicht/feature/murmur
Browse files Browse the repository at this point in the history
Feature/murmur
  • Loading branch information
sebschlicht authored Mar 17, 2021
2 parents c4dca87 + 74cdc70 commit 7b51c55
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 41 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ While most configuration options are hard-coded to fit the recommendations for t
* `dlna`: [DLNA](https://en.wikipedia.org/wiki/Digital_Living_Network_Alliance) server to access stored media files from smartTVs etc.
* automatically discover and play videos and/or music
* *unencrypted file transfer*
* `mumble`: [Mumble](https://www.mumble.info/) server (aka. Murmur) for low-latency voice chats
* `ddns`: dynamic DNS update client
* hourly (and on reboot) reports the device's IP address to DynV6, to have it accessible via a domain
* `auto-upgrade`: keep installed software up-to-date
Expand Down Expand Up @@ -105,6 +106,7 @@ You only need to care about the variables of features that you are going to inst
| samba | `samba.internal_shares` | internal Samba shares, each having a `name` and a `path`, that are accessible with any account
| samba | `samba.public_shares` | public Samba shares, each having a `name` and a `path`, that are accessible even without an account
| dlna | `minidlna.*` | `display_name` to be shown in client devices, `directories` to list paths that should be accessible for clients
| mumble | `mumble.password` | password that is required by clients to connect (may be empty)

### Vault

Expand Down
3 changes: 3 additions & 0 deletions group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ minidlna:
directories:
- "{{ mounts_base_dir }}/primary/videos"

mumble:
password: "{{ vault_mumble_server_password }}"

users:
- name: sebschlicht
full_name: Sebastian Schlicht
Expand Down
84 changes: 43 additions & 41 deletions group_vars/nas/vault
Original file line number Diff line number Diff line change
@@ -1,42 +1,44 @@
$ANSIBLE_VAULT;1.1;AES256
32353037633361366230663064393634313732636266316237366335663632663038393861366163
3966396662333636333834366635663137323535306166630a303038343533383131313835383239
66643737353239633362303365316134643638653166373534373837333534393561653233653664
3432336239623832650a616639353262303366653439393839393162373436323337613565666337
66616431383730323235343865336139343236396231393061636230633037386461356235636636
62376465643261336237393166653433393637653537626635363236353636386136663861376533
32306131396664663834643764363035346135346535346534646331376263646562336561323265
31626135653162323630393630353364333966373565653461393262326465623364613132323836
33383861633938636265313834353030356532666532333133333633633861643539313064613635
33373539383364363662663731646139663731633164326164316661353837373561376530366263
62313766656135613233366136616133356338643336323336373738353064636238623637643263
39346366613430353962343033343038383766663934386338336233383236386164356634373935
64616632636433633433646433663762626566393361356231633337353036306562323830346461
66353662626633346661663835316630386433336538343164323865636465643132643561666564
64313366366239373435323331666438333463396239353530346536646639376631333032383464
37333937356564303634353661653565303633306463626166306465306366336235336666363565
31353063316233343232386633663336313633616132396165376564376538353934323931353736
65386332366263663835656130323537633332653165333138353862653966373431363934623230
37643166383435383666313861306262653636653438363361373931656264313330396535623764
64633732653230393835646238663339363433353434333337383163386436343338373239393764
65393130383366363966343762633862306666326533376238386630613135616261666232666566
32336433653032373366366231623466646562326433343863643365643030363530346662323137
36316462333866396530306632663733633239313862363066353333633366633431323737363365
36626139666566653463366539653630343161306138313761656330626136626232346161613363
33316562653831336133643761356632666132333231333039653165653039346335613066656262
35386335313466393563343337623166396364666661303932303434366463663333303030613163
63663438636535613464663931313735333135333465346331313034386337633961386534633331
65356266656332653061343531303532363638356134383563346161356566326338383230666664
33633063393262313639363633386232613963373461613139336363313931383065633136653734
61333865343037396532383462346632363562393331376664636264383735343437656432343166
65366365643135633637613561656436373037663765333466323637313234306165336434653761
64333231343166336436613261373037386661333933613466626332643666313034303939623434
35623262633032306430386431616338353935663865313761393338386464303931636431323030
31343234393031313566313036323065313661386163316461306438366134396639623038346234
65656436646164663630366164616236303838343330343566333630636239633933333137396364
38376239373032636239353330633938653432396239656163363062343234353639636536303033
62393030316361616237393033646461333965663338656138353331666233626331643566666530
66323762613038363237643431386131373364353239373431633731643331353631386263323438
64323337363937353437633137633437336331326665616665326164316431666265316131353931
65313565663238323561313561393661373230643063326634386235633061663466366465396561
64623833336366656337386230663336393832666435346630623430313837663263
32363766633435663436616436363361313963366331313739366561636664333434623931326664
6136666362653230633930373031393433653233633933660a636131633934646432626665363635
31376237653761313066343031626663383262303432376531353935303365366466626633323737
3536646632356632380a643736386631393363666665656561613331633837343732333838353465
34326337383064643531383064393364613934626565313730613564313430383732633236616532
62636637343236306539353136393031353430363637343734663564643036653461613038626162
35636532633535383438353033313832393531323662306163346430376534393030303539643036
32363031623262383937313162323231346362383666646233386239633964303038623335363964
34623738363734386238643633646563653961373534343139613336613932633630616539393461
38306266646337373733623535363461363661373331343339616538623638643665303963626162
36343962316264373665313839396565303539643236333938386534353137356536373366623334
61326431343961653631363937343036336530633861306465636664333935376136326163376365
61313830646136623362306137386530353361626431643662656337633533343733623165653361
32373639373365376635326632386535363062353066383162333562303632656136343631336531
32313961323132303163626364343637343438626334386463366639633532316530646434613166
38646138643330346134393362306533646439646165653061346438636638383430376330326566
66366632346333343338316230363339663131613534353961653164343632636562626436656236
66356164646138666233323836393437333366636465306663373537663839326265363330386132
31393834313464636365636332323737343061306532613064306462386164326538346465663865
61363761323730323732383636396138623336386637383637366531323564396336393336613338
30383661653937376439313866663634343764373232626465653036353035383330653631643263
66323064323164393466373064343533383966363061663530666239623564333434363533633265
66326237393361393861343736313838376137343864366664636561386636656536613333626531
37356235663735633163646234643461643864353834393937303863623363633961326561393961
37373935393631663336346261383765316539623731323964386333653733343064323632343237
62633430306439616264393066373361343330616264636262303966343636323935653530383566
37323564376463656365373936353939323234353861636161323836653963316230643563623636
33663835396134656663303461643539663137623335636131646563633933303933653933666632
39306636333864626434633333663061323365366239356166666236373461643963366263656631
64383066343230316465353766633236373530646437333339393266353263326264663465353563
36613165643333656263313762373766396465653234313334366330393364613864306463646230
30313939626231616137386232383361366138643839353331633262343666613863343332393261
61656433656134623266326131663639626266633061396461626365376436633738353832356630
35643864363235356532396335616163366131363066363465343462373763313263343762313333
35303636313237613138643536363661373432363331343936346133623163643465383833333139
61613833313836313631623031363835613163356363376463366537303537633638383337633639
35646335656337653036356562396438383036623364666338333261643039643831366239663135
64616533393337333137383231356663636236653934396633663365333361353437613464356438
35616161376533626531396633636639376431323265323534353366363564306161643733303730
36643762353565333261373432646538303064636563333866303136383061636561326265386533
39396636343931623338356261313135303831653635633466323561393665373564636230353264
32323735353465383164643863326337376164646361393633333762303862323966303964373833
366339353461636331383534653631323964
1 change: 1 addition & 0 deletions roles/backups/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
loop: "{{ users }}"
loop_control:
loop_var: user
label: "{{ user.name }}"
tags: nas
10 changes: 10 additions & 0 deletions roles/mumble/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- name: install
apt:
name: mumble-server
cache_valid_time: 600

- name: configure
lineinfile:
path: "/etc/mumble-server.ini"
regexp: "^serverpassword="
line: "serverpassword={{ mumble.password }}"
3 changes: 3 additions & 0 deletions roles/os/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
- name: create OS users
user:
append: yes
name: "{{ item.name }}"
password: "{{ item.initial_password }}"
groups: "{{ item.groups | default(omit) }}"
with_items: "{{ users }}"
loop_control:
label: "{{ item.name }}"

- name: set hostname
import_tasks: hostname.yml
Expand Down
2 changes: 2 additions & 0 deletions setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
tags: samba
- role: minidlna
tags: dlna
- role: mumble
tags: mumble
- role: nextcloud
tags: cloud
- role: ufw
Expand Down

0 comments on commit 7b51c55

Please sign in to comment.