...
 
Commits (9)
......@@ -40,4 +40,4 @@ Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
/label ~bug
/cc @gethmann
/cc @vn4918
- hosts: dhcpd
vars:
- dhcpd:
domain: las.kit.edu
subnet: 129.13.108.0
netmask: 255.255.255.0
range_start: 129.13.108.74
range_end: 129.13.108.89
routers: 129.13.108.254
broadcast: 129.13.255.255
host_list: host-list-las
roles:
- dhcpd
ansible_user: bernhard
ansible_user: root
ansible_ssh_user: root
user_account: bernhard
ip_suffix: 70
loc: 622
os: Fedora 29
loc: 601
os: Fedora 31
computer_name: majestix
- hosts: lab
vars:
- dhcpd:
domain: maglab
subnet: 192.168.0.0
netmask: 255.255.255.0
range_start: 192.168.0.1
range_end: 192.168.0.100
routers: 192.168.0.10
broadcast: 192.168.0.255
host_list: host-list-maglab
roles:
- lab
- dhcpd
- lab
---
- include: common.yml
- include: clients.yml
tags: client
- include: lasarchiv.yml
- include: opera.yml
- include: desktop.yml
- include: elegant.yml
- include: epics.yml
......@@ -20,7 +20,7 @@
copy:
src: automatic.conf
dest: /etc/dnf/automatic.conf
mode: 644
mode: 0644
owner: root
group: root
when: ansible_distribution == "Fedora"
......
---
- name: dhcpd installed
- name: Load OS dependent variables
include_vars: '{{ item }}'
with_first_found:
- files:
- 'vars/{{ ansible_os_family }}.yml'
errors: ignore
tags: dhcpd
- name: dhcpd installed (Debian)
become: true
dnf:
name: dhcp
state: installed
package:
name: "{{ pkg_name }}"
state: present
notify:
- start dhcpd
- enable dhcpd
......@@ -11,17 +19,15 @@
- name: copy mac addresses and config
become: true
copy:
src: "{{ item }}"
dest: "/etc/dhcp/{{ item }}"
src: "{{ dhcpd.host_list }}"
dest: "/etc/dhcp/{{ dhcpd.host_list }}"
backup: yes
owner: root
group: root
validate: /sbin/dhcpd -t -cf %s
owner: dhcpd
group: dhcpd
mode: 0644
validate: "{{ bin_path }} -t -cf %s"
decrypt: yes
notify: restart dhcpd
with_items:
- "host-list-las"
- dhcpd.conf
- name: install dhcpd config
become: true
......@@ -29,5 +35,8 @@
src: dhcpd.j2
dest: /etc/dhcp/dhcpd.conf
backup: yes
validate: /sbin/dhcpd -t -cf %s
owner: dhcpd
group: dhcpd
mode: 0644
validate: "{{ bin_path }} -t -cf %s"
notify: restart dhcpd
......@@ -8,7 +8,7 @@
#
# option definitions common to all supported networks...
option domain-name "las.kit.edu";
option domain-name "{{ dhcpd.domain }}";
option domain-name-servers 129.13.64.5, 129.13.96.2;
default-lease-time 60;
......@@ -25,6 +25,7 @@ authoritative;
# have to hack syslog.conf to complete the redirection).
log-facility local7;
{% if failover %}
# failover https://www.madboa.com/geek/dhcp-failover/
# https://kb.isc.org/article/AA-00502/0/A-Basic-Guide-to-Configuring-DHCP-Failover.html
failover peer "dhcp-failover" {
......@@ -51,20 +52,24 @@ failover peer "dhcp-failover" {
split 128;
{% endif %}
}
{% endif %}
# A slightly different configuration for an internal subnet.
subnet 129.13.108.0 netmask 255.255.255.0 {
option routers 129.13.108.254;
option broadcast-address 129.13.255.255;
option domain-name "las.kit.edu";
subnet {{ dhcpd.subnet }} netmask {{ dhcpd.netmask }} {
option routers {{ dhcpd.routers }};
option broadcast-address {{ dhcpd.broadcast }};
option domain-name "{{ dhcpd.domain }}";
option domain-name-servers 129.13.64.5, 129.13.96.2;
#
default-lease-time 1800;
max-lease-time 7200;
deny unknown-clients;
range {{ dhcpd.range_start }} {{ dhcpd.range_end }};
{% if failover %}
pool {
failover peer "dhcp-failover";
default-lease-time 1800;
max-lease-time 7200;
range 129.13.108.70 129.13.108.89;
deny unknown-clients;
}
{% endif %}
}
include "/etc/dhcp/host-list-las";
include "/etc/dhcp/{{ dhcpd.host_list }}";
---
service_name: isc-dhcp-server
pkg_name: isc-dhcp-server
bin_path: /usr/sbin/dhcpd
---
service_name: dhcpd
pkg_name: dhcp
bin_path: /sbin/dhcpd
......@@ -6,6 +6,6 @@
state: present
when: ansible_distribution == 'Fedora' and (ansible_distribution_major_version|int) == item.key|int
with_dict: "{{ pythonsdds_version }}"
tags:
tags:
- elegant
- python
GIMP Palette
Name: KITcolors
#
0 0 0 #000000
255 255 255 #FFFFFF
0 150 130 #009682
35 161 224 #23A1E0
70 100 170 #4664AA
76 181 167 #4CB5A7
77 77 77 #4D4D4D
125 146 195 #7D92C3
127 202 192 #7FCAC0
128 128 128 #808080
140 182 60 #8CB63C
162 34 35 #A22223
162 177 212 #A2B1D4
163 16 124 #A3107C
167 130 46 #A7822E
178 178 178 #B2B2B2
178 223 217 #B2DFD9
199 208 229 #C7D0E5
217 217 217 #D9D9D9
217 239 236 #D9EFEC
223 155 27 #DF9B1B
227 232 242 #E3E8F2
252 229 0 #FCE500
......@@ -5,3 +5,10 @@
name: "{{ item }}"
state: present
with_items: "{{ graphics_software }}"
- name: Copy KIT Inkscape palette to its location
become: yes
copy:
src: KITcolors.gpl
dest: /usr/share/inkscape/palettes/KITcolors.gpl
mode: 0644
......@@ -56,7 +56,7 @@
clone: yes
depth: 1
dest: /usr/local/Inovesa
version: HEAD
version: "HEAD"
- name: cmake Inovesa
become: yes
......
......@@ -6,15 +6,6 @@
name: ["freeipa-client", "sssd"]
state: installed
# - name: add ipa hosts to etc
# become: yes
# lineinfile:
# line: "{{ ipa_host_ip }} {{ ipa_host }}"
# path: /etc/hosts
# state: present
# backup: yes
# insertbefore: BOF
# TODO
# - name: copy server cert
# copy:
......
$ANSIBLE_VAULT;1.1;AES256
65643534316434646333326331303434613930613936643031313638663337316638333637343636
3632613332653363383035623137646436626637303263630a343961326664633364613438623031
64306439383865613530383830376538343631663465333132366233323634313239613464363335
6234636335376661350a303035353233666438393535313632663861363435633931343962333664
34353065393934633532633439633635313762636337376339623334376133343433373261663466
63366639393661666333616232656630316637373531383130626563333636366264373839386538
33663330663530356537323432393065626333393664326236636339363864646363636239656561
38346233616666326566376337656263383731646463363239623239663562373563666163623131
35613632656138643431363731626131303163663831623762356634326530353264653838373532
31646165613636356461353138386138333834383463633332633136303439346135343033316237
62663235316162353063613036663538353632643537623432643066323137393861353032356463
63356263646239326539386532643766366431396331666662363936383936623830333636326539
37663362656265303836363066623837653632343434373865346664323031656230376266633966
32383464343566363138366333656564656135353332343432623663323436336462386663363339
61313139303336396639353162613338376665333562376163616162366535646661343831353263
63366364386334363035643665353339393639323739613038633639353535326630383830323266
35633436303239316337633630643333646365343562646562343164653635386266336165646661
66396631396162313539366434356136373165356635303334613464353861626461633230636631
66396536353061633963663139363137656663333839663633333465323336396262393635643066
30313833346164633037666431613663393464393964663734353166373337396531616537623733
35613930636433346538646538306162623538613439346566383934313666363065376361376636
30343831363034346165333963356137393737313530623264643330373137386639663462353735
39336632396630336239393032306438623564323565333962316166323866346664363732643763
38383466626131323361306264396363643237326130313162366163323562303934656565383132
61623934343734666637643563333435623139613032383261386335376165383333356166336133
34616430356138646365393033626131316138383435333437373639363235353364656435316663
35376230363932396332623437653266343130623363393936386431663634393033376532343031
63666632303633393666663637303431623831626431343334333462633839393136363037636362
63303631653862326131633938353932366638346138303536376431383266633632666236313161
30366134383130313335386235353461616333323638666436616164333864386261363562393035
32383164333563396432656633323433373639613835336134366264656365636535333739363165
31396363393230653930373339326166303836656334313437326665336637343263653939663166
36633232653832616637323733373662623138623334313336643635336631316635356532643338
63623038393866363438636335396131383337373734313462636433356363636563653366333266
36613137363837336264313662313362646564393131353439363438373462323235313231356237
35373765633933663664316564623164363661616534356430313737623139356139303433653661
36303062333061656132303961396665396139366130633263643231626165356330393061333861
63383731656163316231653361656362653439336562346662343235653166353863323464393839
35336161613330313663306662663739373831353466303931666263306537383135306361633635
64303336353239613031643164343562666134626262303136343663376638626234346231306637
30666431623965316662366537373430346332656365613933333661663464303034343532306332
37363162356262653261316565343032623765626439353936353262643339303736373632633864
31633430643038313834666265646165323064623131346437386236356561303933613834343939
62633638313166653862666661646131326162323939323834306137383938333161326236643338
32366434363532343733613463663736333032636263636366373661613361653030343330336233
35643332373235326536623062373665326266303136626538313230336136323730646438653864
36633566663230653938303562376633373865353230613937323263353433363064316664313563
39666437336265356435366464646332653166383639613234313838316339353361306133343835
34336461303532326561333864393830646131656333636230303634313134653862363839633661
62356364326633633836623838663262646537333730646236333537666539383230656138393663
64616139386139636165383130326433316236313464383533393532303530643635633937356430
64623665656632663531383362326233343361646431653964336266643630396561636662333362
65643739663736353039313637323339336232333961393363373635616337643866316232323564
63373338383339306134623461373830653136303263356136316138393661363630363136393834
64323533663166616639646466386534646166633564363935623366343834613331616561313232
31376332376662393535326466393965646338343630386461663236303834373536623930326263
36343831316165633937653066343337356461646530393835353633396665343662376239323831
37393564336235316335633039386466643463353335323533396564643033623664353234663935
64636538353835396330313839633539386261646466326131323938306465386334666239626135
32613436653866616434643336366265343835343537636332346566373530363735636136356461
33336337613836613330636439646664343334623665613933643466363166626464343462633237
37643530326332633135323735376236343561613539313964383335656365333866363532313037
34323433616133356537323365363765363835326334343130636539313566316139666337633264
34363438666132376336333436626161353566663163353736326634343566623930323232383433
35666165663137633230313861623163326630363661393239653034633434383333363238353037
65356134663662653030353866396439306435313632613537623130626465303430303338383765
34663662316164636235326434353939653439636630643362623133386238313133373231643630
65356261313333646362633761656465663931376135343462633337336664636231646234396237
36323236313335636364303037643839353335393463653263633232306565323934373338396333
65333865626565363366383131623763636536313964623330616466346335306630323639613237
37346239626335323062333936326464663633623462623733386335326431393364353462306161
38313837663839346635636139613138653563396537616338316535326264343962383966373733
65626330333934666235643830343039333337376633326135326461353439656631306665333334
64623032336165376663653034356536666634363461313736316432646532316262326662646631
35323034646135376136613563663033636662393039633763343462333139663132353062363835
35306463646565373061643639336338323434353232666334343233383666363833383461306661
65316231323432383738666561303736343731613535653963323930343931383366316563333739
30623439613437643530356332376336613462383533636139663637616336653638356365633961
31366337656339356137666364376233663865643861353234343239316432613939313538373038
64316634386435373166626464353064366133623162373539366362316362376564666165336361
30343665363933363038353365353663356162633365316539616633313739323066363631336261
65613831353430353734386136393265396637363663636664353866393863613831623434353336
62353666326465376136323862616162633435633230636561376366623537643963666465383265
61343834626466336666613133343263623333623434373863313138306636636637316634366131
61366338333234333830383639636536333762303034356461633065383264323732633763656537
64653862666463353436366666343837313933376630633761656631313365366236353163373230
31386366386335336565343564336435363538376266656134666161616265306131343166323765
38366666333636653566333862633661303432303438663136336230653963346364323163393762
38313338383936396465383261396438373238333664313734333430623539336239313462653362
39346432646665653035613265666331653963666138663361633730336161326235343336383931
37663339333239333835643437373735333338323834663263323862613361343161633130353336
61343531636139333732353432623861633534306434353937646431343632363534323435663464
63396431653762313562623237636638653566356130643762386435616363653032353263643133
64333464363035636561663139643134656363353965353232363561363033326531363562373766
61653433306564613366343339373665373139616362376338346638386438326566306439653134
31323161336437303334663934613033363134323234613164376436393239373463653033336437
33363364353430323238656131613964376165366438666663316164626336323766333938383364
63346634373631366466633466653137653362653531333662653334373834366361336363343632
31616665613639643665353438313338386537393261396264333130353433346564643636333531
63323938376166653765663530366363353835323834303834643064336431623538643464333030
36363261313437313838623965366165623430663062616465363963326139666632643066376566
38333836333836353130636665333662666432616161356130323830343237643435653665386639
30633463363639313130633063393861366330643464383236313937653037323139626233616330
62663030623665656233383330303831313164633532386539653232356338613764323262653031
37646463663639623737383263303338386564366166666636666432376463323237396565316634
65303936303139613466623161646462336465653661356163646564663961613931633861633363
66363236363064646335356466306463663766306334346666363466646533643233633461366632
61346561313565643036653161353662363930666331343935626464336530393032373034396166
31653239373736636438393630343130376532643935333832323561346637636234
39643532323931633761396632323535613437356232626166313338646666356239666233636332
3536353163643832323235333165303839626636393935630a613537626638343130306364306232
37333038303239636434636663656431623531343264663064376636623130646363363331323061
6665633165613031640a393665633161373637343865323536373238326461646630626431396235
35336266666436323934396135336262333231343265613630356632363961323838633133343537
61636564626434333665666333636235383566653161336532363537356631333534303235656234
61623430313936613836346465333130363839633565326563663231646436623566316431616235
63363832356265613365633933643564636233306531396361653330333066383562373066616335
31363535656236613732633863323731656563376364326239366335393663613635323630343931
34376661393838633531303935346265613562643565353538333633383963373064636361623963
39646638333635666137326564653562303663356134643638636463626635343038373038373130
66303731646235613532396565366231323836643639373562393437636361306434316637656364
34333936336337326164306233303630373836386230313935663533666535313036663062316238
64646533313061343835303837343566636534326464373036303332323162643238383261393264
37613061646533316362623033346538326137353662333835323831383561646532393434373138
61363838343265356162323537623461323861343737306336653365666436613630343962326232
38626633353566303934386239323663643139623832666464303331646432363835666565303761
64343033666134353266636532323535303838366230343539386361666332346434363335343237
66363633623165656361383534373031613761303030333333356561343838646431313533666138
62626463373062656136663036633961326530613664333464303464306166386136313330616562
32366437643730353139643436336432636664336234373364366665653662306437623163323863
30643565656165383335626133636333356635646466613765613166336234343436613337636530
62336538633335613333666632633833613532373664343130303730633661303038363230343333
64383862613733333964313064373731396436653135323138636365643936316465653130626132
31383833346434373335316536363130356662356333393638343539323131316661323565646162
39623762356338353837623934356438326461323037343839663932363930343031323832313239
30636238383864393866313565646335343937623837626362666635373965316564656661313464
30636365666638316164306565316662336363613137363162336361616134393230616537666537
32383763343866393934626438613666306631653232333537663537343437356362623036303966
66616235376139313539353937353162313030323863323561376664373664666563616234303830
63326236663139633838303833353736316430313136376565643038323533613333373530363765
34633765636434313766303535393932396264393635653831303434333037326636393735373730
64356466623561383362396662666536663735643864336531313430396366383538373133393861
39306336666631343836633563626363303434656132303238303331376365336231383434373433
64356631343632643232643366313763383831616330313134633066613132623862363661613330
35643932663335373638666130326437393031376332616565356362356139396135643963613135
30643830376331643136356237663863303931343232636263316338636333343038666338323165
61366233303536633338646139303936666534376430393635663362303637303934363137373261
65613063616433303035646465303563346534396165613531613131386139306234356138393236
39316635626437653464393362643735653438396666343165306336646264323234383237386338
30633736383330363736363238396466346561326666653133663336396132343935663737343631
32353861666563356435646262393238356335353634613564353631343465616364373132333865
39336335656532386635343665643235393163386239383439313261383035376463646230376262
37323034363733663738623733393938383032336563333436633562323262356635653238333832
32333036346661373635343264363030616334333962393165333339326266616630616137366339
63376665366265346664636636653933373833316535636462313562663438623539666632366439
37663361633165623462343864323332323636316264383461303437396161653134306266313235
34653436663663633961303663386239333763646537323432393931373936383564373165386432
32353163653432306265626665663765653361343134393066333466303137626436653063376232
34396464343036363735656633316430393638373662396335383366316465383633396262653263
35383466613439306563636165643731373638666437343430346233323662393366656437656631
31323766333432396339373031643261393230333237323537306463656661663966623761386432
37363866366337386466623337333763396135353334383735326134346432346535316365616663
65623130663636633963323730636465613463313063623565396166363933363037393162316130
33306639666435303764613833353265303738323736343333313139316238636266653862643539
65613661656331326436313239633737376662323531373538313266653436633339383631313633
37643038303535623862613963303838643063336664613861313062343265346632386231363132
63616366633038383864396632643237333830613963353631646364636433616139363361373333
37336339356136643030633833373338633136353730626264396261396465343231353863383939
34356339396535623136383831303333653238656637323737653266393062373037663538393761
66633332623430313737303063393036396362353338363033343239373239656264613133363261
37653632343235366366636339313762643438336262333033376633623632363630633236306464
63313533653332386136383364323636356134356266346463623865306365326164393639393962
63666639303532316632616439333663386161396431646364343661333335316434333836633833
34353066623733643830363364373335393238366133306563356235366132626438393032356634
30386634656639353438353930336439383366383039363864653335616635333262346535353536
32623861363333306237303038386562373138613766633333303835643766326564323766383164
35613761356264376639636562383331653730313731636133656363396430343235303236313431
39316634343839643262633236383532633863653366303534303762343139386166336537303832
31653166306637653933366630383135656365336361383030663731643161646664383361643235
37653337643739663637323632626537636437313839313761323861393531323730366365383230
36366535623237353464303265303531636633643166313034393839663933303232646264623963
64386632313763356235396461346433343864333861663638623939333932616230636462633238
63623438313363333632346537366235653031313030643633613765393330336538316234303834
30326536353933366639396438316532613361666366643839313463383163653136636433326633
34363163623938323735326365306464353234656333356434396164633965636465393037366635
64356337623763353631316262343037376234306130663965313463396135663834663033623438
65373433653364313634353030636332303138313862373763373763346337313863613739396162
37336562323364303631633032656164623233383636626432323838303066343533633764363938
33366537316263333531376134663932626264326664356332663137666463663564666661393262
36333533393232643839306636333635303263376465653365363963643931383939343137336331
66383163316434396538613065343133393039353836653438393766396165376333346365623533
34353633303930393337386235653632346364393834613535623862313537613562393863666332
39373962376634623730613765323130386162393461313566363533356365653463663936376631
66643566306331383731623661383066393862613439373433653031653964653839623461613530
35663462393864376363626631393266373134306133636536326362313063623436663762326464
66376130323034373666336633616531623539303339343138663963626333366133306662373866
35613434383963303935336166333236643437313336343934393662333835643734346339666130
65356533366637633962393038613764363835363836376235306261633666376465346231623865
63616162396330643161373061336432326132373033343635633964363533623838626465656463
33643234623832356238663862313034383663333435306666366364646166376237336362346330
61376238373465623533303031356665346230373362303961313263343732623830346531313536
38336336653263353334336166616236663636316331383635666535363130643439633832633766
65376639353136346232636530326264373336333465393937373937653364366465363531393165
30323365303935373331303832626161656630343461373762656537393266373035356630613830
33323966333431646137373265386336333663336435623133393631313632613433343032396263
32376336303661656638343161633632643733373631666435333365626436663762663339346138
64646339636131383133343030323638313464376637643065353435396239643364393235613963
65656530313531663635363539326633306264656435353932393062653366346465376164663162
37613266336163333639623339326163626335333664383762383638316465623664646634373737
38373435383731663135343163346164353234393565313062363462653437316335306532356633
66666637316664303037353135363239336234323339663266666334333963633963303435626264
62353637356366666639633038643038623263636534366165666565313039323535626538306636
38613734323130643762613936303361323663636633303539396238303438303465376632666463
31663137343661623139326332626663653935336163376235346562376330313034643762396464
30653435303063336236666466346331643536633739663937393666313939323733626434633263
30616538326137613137383130353535373535306535643162396266363030393733386162306166
65633536313233323130313962346161626564633432623932613036333436656238376466643639
64353031343566343136343835636364386265313065323530326561663038653435323538333761
3830666265613533346466356663333666376336663963353264
---
- name: Load OS dependent variables
include_vars: '{{ item }}'
with_first_found:
- files:
- 'vars/{{ ansible_os_family }}.yml'
errors: ignore
tags: dhcpd
- name: dhcpd installed (Debian)
become: true
apt:
name: "{{ pkg_name }}"
state: present
notify:
- start dhcpd
- enable dhcpd
when: ansible_os_family == "Debian"
- name: dhcpd installed (RedHat)
become: true
dnf:
name: "{{ pkg_name }}"
state: present
notify:
- start dhcpd
- enable dhcpd
when: ansible_distribution == "Fedora"
- name: copy mac addresses and config
become: true
copy:
src: "{{ item }}"
dest: "/etc/dhcp/{{ item }}"
backup: yes
owner: dhcpd
group: dhcpd
mode: 0644
decrypt: yes
# https://superuser.com/questions/1286948/ansible-template-validation-fails-on-isc-dhcp-server
# validate: "{{ bin_path }} -t -cf %s"
notify: restart dhcpd
with_items:
- "host-list-maglab"
- dhcpd.conf
- name: set host in hosts file
lineinfile:
path: /etc/hosts
......
......@@ -7,7 +7,19 @@
- name: install dependencies
dnf:
name: ["texlive-a0poster", "texlive-beamer", "texlive-bophook", "texlive-boxedminipage", "texlive-dinbrief", "texlive-hyperref", "texlive-lettrine", "texlive-mathpazo", "texlive-rcs", "texlive-sciposter", "texlive-shadow", "texlive-pgf", "texlive-xcolor",]
name: ["texlive-a0poster",
"texlive-beamer",
"texlive-bophook",
"texlive-boxedminipage",
"texlive-dinbrief",
"texlive-hyperref",
"texlive-lettrine",
"texlive-mathpazo",
"texlive-rcs",
"texlive-sciposter",
"texlive-shadow",
"texlive-pgf",
"texlive-xcolor",]
state: present
skip_broken: yes
become: yes
......
......@@ -4,12 +4,6 @@
path: "{{ texpath }}/fonts/map/vtex/ua1.ali"
register: arial
# - name: temporary directory
# file:
# path: /tmp/arial
# state: directory
# when: arial.stat.isreg
- name: download uarial
become: yes
unarchive:
......@@ -17,7 +11,7 @@
dest: /tmp
creates: /tmp/arial
remote_src: yes
when: arial.stat.isreg == false
when: not arial.stat.isreg
- name: create missing directories
become: yes
......@@ -33,8 +27,8 @@
- fonts/map/vtex
- dvips/config
- doc/fonts
when: arial.stat.isreg == false
notify:
when: not arial.stat.isreg
notify:
- update latex
- name: move afm, tfm, type1, vf dirs
......@@ -42,13 +36,13 @@
copy:
src: "/tmp/arial/{{ item }}/"
dest: "{{ texpath }}/fonts/{{ item }}/urw/arial"
with_items:
with_items:
- afm
- tfm
- type1
- vf
when: arial.stat.isreg == false
notify:
when: not arial.stat.isreg
notify:
- update latex
- name: copy latex dir
......@@ -56,8 +50,8 @@
copy:
src: /tmp/arial/latex/
dest: "{{ texpath }}/tex/latex/ua1"
when: arial.stat.isreg == false
notify:
when: not arial.stat.isreg
notify:
- update latex
- name: copy map dir
......@@ -69,11 +63,11 @@
- { from: "map/ua1.map", to: "dvips/config" }
- { from: "map/ua1.map", to: "fonts/map/dvips/ua1" }
- { from: "map/ua1.ali", to: "fonts/map/vtex" }
when: arial.stat.isreg == false
when: not arial.stat.isreg
notify:
- update latex
- name: copy docu
- name: copy docu
become: yes
copy:
src: "/tmp/arial/{{ item }}"
......@@ -81,7 +75,7 @@
with_items:
- doc/
- README
when: arial.stat.isreg == false
when: not arial.stat.isreg
notify:
- update latex
......@@ -92,6 +86,6 @@
command: updmap-sys --enable Map ua1.map
args:
chdir: "{{ texpath }}"
when: arial.stat.isreg == false
when: not arial.stat.isreg
notify:
- update latex
---
- name: Add chmod-daemon to crontab
- name: Add chmod daemon to crontab
become: yes
crontab:
cron:
backup: yes
disabled: no
day: "*"
......
---
#- import_tasks: nfsd.yml
#- import_tasks: data.yml
# - import_tasks: nfsd.yml
# - import_tasks: data.yml
......@@ -11,7 +11,7 @@
src: /mnt/las-archiv1/system/Opera/18/Opera_RHEL7.tar.bz
dest: /tmp
remote_src: yes
when: stat_result.stat.exists == False
when: not stat_result.stat.exists
- name: unzip Opera
become: yes
......@@ -50,16 +50,20 @@
- { dest: 'libicui18n.so.50', src: 'libicui18n.so.50.1.2' }
- { dest: 'libicuuc.so.50', src: 'libicuuc.so.50.1.2' }
- { dest: 'libicudata.so.50', src: 'libicudata.so.50.1.2' }
- { src: 'libhwloc.so.5.7.5', dest: 'libhwloc.so.5.7.5' }
when: (ansible_distribution == "Fedora" and (ansible_distribution_major_version|int) >= 22)
- name: Link missing/too new libs on Fedora 31
- name: Copy missing/too new libs on Fedora 31
become: yes
file:
src: "/usr/lib64/{{ item.src }}"
copy:
src: "{{ opera_path }}/CentOS7libs/{{ item.src }}"
dest: "/usr/lib64/{{ item.dest }}"
state: link
remote_src: yes
mode: 0755
owner: root
group: root
with_items:
- { src: 'libhwloc.so.15', dest: 'libhwloc.so.5' }
- { src: 'libhwloc.so.5.7.5', dest: 'libhwloc.so.5' }
when: (ansible_distribution == "Fedora" and (ansible_distribution_major_version|int) == 31)
- name: make CentOS7 libs available
......
---
- name: Software for dependency installation
dnf:
name: ["gcc", "gcc-c++", "glibc-devel.x86_64", "openssl-devel", "python-devel", "lapack-devel", "numpy-f2py", "redhat-rpm-config", "python3-tkinter", "libxcrypt-compat"]
name: ["gcc",
"gcc-c++",
"glibc-devel.x86_64",
"openssl-devel",
"python-devel",
"lapack-devel",
"numpy-f2py",
"redhat-rpm-config",
"python3-tkinter",
"libxcrypt-compat"]
state: present
become: yes
when: ansible_distribution == 'Fedora'
......
# $Ansible managed: /etc/ssh/ssh_config.d/06-rpi.conf
Host pi
User pi
HostName 192.168.127.5
ForwardX11 yes
$ANSIBLE_VAULT;1.1;AES256
62333066643230656432666638356532316637393032373566373865636531373965646164373363
3533643033376535323839646665323536303833626634640a303330306366373335393037303833
65653263346538613831353866643664633936626536623739303262346433336135623431373532
3662616561346638380a333230386562333833653935623366306261393232366531316262623865
61376138376361346365653730646533656136393138333231343033333464346232373834303735
32313661613937306438646262353233323463613964653664636435323438666236333232623962
32356337303231303732383034626166353837623965323931643432633962363130636239343965
62613563666639623566363663623962333862333161646561383062376530313233623834323533
63383430633637383639336636613436363931303561303338373961306263643466653937626236
61336432306235663835666237323362333834306437396165373061346137343363346533653666
31633430626461623438333631663031343832666133366231633632343963333430376566653037
39393932626463663735333161353430383765363030663436633331373530636565663966666333
36376564376163653236643834313663366136343065616536636566393836646230363134393366
32383061346662393361646136383931653566663036366666323434613532616362316235656339
31353162313433656463383336613765313166663562646162336130393434663337653231636534
36613437363734613933336437303539376330363466616331303764613561316233383536636431
64643531313738306132623363333063623836623135376131396337346661613763386137356331
35643932643434643334363933623161666262653066376433663961653132356464373036643434
39626535383066626634363935303533616166363761376635396237356335636536393461646561
38346532383833326466626266313331386631656463616162653532623539303466646333393063
34376530363139373663323938393665633562653634613235393937326339313666393335343262
33373365366637616434313066333236396435646339646132393531393264343866383964396434
65306238373264323364366134373364343838666165633637643765326631386561356533336363
31333130653038316532643066383963343836383030336161306537646539393566343466613463
34346463646164323838323138663063653366386530613763363834303138646539313538323439
63613065323935363363386235353564623037316563303065366532316562373762356634383065
66663662346530643037333866393237663838336538323963633336653030343661393435656564
39393666663732366330386132633962333137363938646438386338666334633130366331643664
66306638333832306562343532313637666262333532303830353266326336643262346234376661
62306236363262373965613239323361656563363333626234313239316161656235353932373065
37636531623065373164613235333232303565303964663562633030643165353330376136343136
33303239363434346439386233613035626332343162393162373136646533643636336237303465
64353234323930653162333365393763623165636334343661356136376334383532393133393334
32383837376639393062613165616566306132333361616665333534386261653965353361323066
38383162313963343261333664396166306264313734333661633230383761393066343166666334
63353562306230633230316432626530666365316538383461663138653161346139626264306437
38343633393363333936373331346462663261636663343936653336613136336638333738613137
38646431306263313936623035616533366532376536646532626563303066616664626633636365
38623639333635663761376461613261393433323430653638626134363232343737376666383133
34313664633636626161626235323133376237353764383537353764656636633264646461376266
65356335376131663966623266353962373434633164386632663363333934383533613931316234
37663666326337626664356338366632646461316235366661346263386338373733613837363435
38383033306139353463333961363964393463343730303330306261636565643066383432653865
35346534326666386639633863393530333239363130343466376566313831356637383864343632
32343837386463636231656163356339346537623661623664626235313062356535646236353637
64636536323465383364313464343764393939323662383236613365653863353333623533623134
31396363646461626134356633643238323835336237313764313935633037366666333733353537
37323863396263303338323535313061663335646438643661323764653964383164303433626362
64336537363861323937366665363231306332616536623163376266306165633531376236626631
30303834666163666230636332353163383866313637356131373165306439363232616634366439
36663837333631626439393236393539616466643234376364636163643236323239623436313338
62366463363138623931343731656538613430313938623361653664616332363236386564356638
34316465313232373965663531363836626331346332376435346665346537326633353164663964
31343937303262356639666563316331636662333535356436353834383464343630656133306132
61363738386336356432323365363666333165396262616462613334623332666235643334333339
33366139653034663831656435613137626463653531343063656631316464313766616532656566
33653731376366626634303432633432363132626663666631356331336637313438363162396463
62666630663033363838373430336635356238313330663365333130643032353765613334323765
62626162663465313132623731323935306239363236653336623731313836356363393539373932
39396332393036623239316633386238646233633332383162633534346137303662363030303131
66336533326532383638326437313665356231346230303865366666623437356465653266353234
63626233373438653463306437636165636639323562363433643635633666383764303535653866
37383539363435373433383136633262396633613033303335386465326330306334653830663631
38633635343630326362336661303136663537616563616632396231326237373562346365393437
37313261363634653761646530396537356138376161353231303438633132623739353538343533
35373162326235306663303264663362643438366330616331316466363661646663366566316366
38373664306563616235303861343637663736316232396465396335343063643531666330636461
38323238356131343539353864373963626532356661636237353934613930363531643231653738
35383666666230356566666134323662303464313962613339666566646165663038653765346666
66306431366436666535333739396366643635336334643866356532353431623138623661303766
32626263633266336438373963306362653362616534353561363234643536326138363164633336
62333765623134363561326537353738653331643265323139373835326364613935373838363930
65303436353636623434393738643730393264386162346237663861333039373637393666666164
31373639326430316537303133346338623736656134326265633836663365613438613730363636
31363332313036343462366462363636323162303539353137643439643737626339336434633833
37363039353335386333653336343436336532323564373264383437343662366435643261376535
34323963333438383936326239646430353661326661333964623232363031303066343530346634
31323763356234616339316264376336626464616335616335313939396266626231366238666466
643935383963333031313166373762303137
---
- name: copy short cuts for ssh
copy:
name: 06-rpi.conf
dest: /etc/ssh/ssh_config.d/06-rpi.conf
- hosts: tgulab
vars:
- dhcpd:
domain: cn-tgu
subnet: 192.168.127.0
netmask: 255.255.255.0
range_start: 192.168.127.1
range_end: 192.168.127.100
routers: 192.168.127.10
broadcast: 192.168.127.255
host_list: host-list-cn-tgu
roles:
- dhcpd
- tgulab