Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
las-it-organisation
32-0-IT instructions and rules
ansible
Commits
bdabe0ec
Commit
bdabe0ec
authored
Jun 29, 2021
by
julian.gethmann
Browse files
Fix bugs/updates for Fedora 34
parent
2ac6cc0a
Changes
6
Show whitespace changes
Inline
Side-by-side
group_vars/python.yml
View file @
bdabe0ec
...
...
@@ -22,7 +22,7 @@ python3pkg:
-
python3-Cython
-
nodejs
-
nodejs-libs
-
kf5-purpose-twitter
#
- kf5-purpose-twitter
-
npm
python2pkg
:
"
"
...
...
host_vars/asterix.las.kit.edu
View file @
bdabe0ec
ansible_user: root
user_account:
gethmann
user_account:
sg7149
ip_suffix: 73
loc: 618
os: Fedora 32
...
...
@@ -17,7 +17,7 @@ extra_software:
- zsh
- neovim
- ShellCheck
- inkscape-table
#
- inkscape-table
- ripgrep # like grep
- bat # like cat
- fd-find # like find
...
...
roles/common/tasks/ntp.yml
View file @
bdabe0ec
...
...
@@ -4,6 +4,14 @@
state
:
present
name
:
ntpdate
become
:
yes
when
:
(ansible_distribution == 'Fedora' and (ansible_distribution_major_version|int) <=33)
-
name
:
install ntpsec
package
:
state
:
present
name
:
ntpsec
become
:
yes
when
:
(ansible_distribution == 'Fedora' and (ansible_distribution_major_version|int) >=34)
-
name
:
set time server
command
:
ntpdate -u ntp1.scc.kit.edu ntp2.scc.kit.edu ntp3.scc.kit.edu 0.fedora.pool.ntp.org 0.fedora.pool.ntp.org
...
...
@@ -13,6 +21,21 @@
-
enable ntp
changed_when
:
False
-
name
:
insert SCC into ntp configuration
become
:
yes
blockinfile
:
insertbefore
:
^pool .*[a-z]+.*iburst$
path
:
/etc/ntp.conf
backup
:
yes
state
:
present
block
:
|
pool ntp1.scc.kit.edu iburst
pool ntp2.scc.kit.edu iburst
pool ntp3.scc.kit.edu iburst
pool ntp4.scc.kit.edu iburst
tags
:
ntp
when
:
(ansible_distribution == 'Fedora' and (ansible_distribution_major_version|int) >= 34)
-
name
:
insert SCC into ntp configuration
become
:
yes
blockinfile
:
...
...
@@ -26,7 +49,7 @@
server ntp3.scc.kit.edu
server ntp4.scc.kit.edu
tags
:
ntp
when
:
(ansible_distribution == 'Fedora' and (ansible_distribution_major_version|int) >= 28)
when
:
(ansible_distribution == 'Fedora' and (ansible_distribution_major_version|int) >= 28
and (ansible_distribution_major_version|int) <= 33
)
-
name
:
insert SCC into ntp configuration
become
:
yes
...
...
roles/opera/tasks/opera.yml
View file @
bdabe0ec
...
...
@@ -6,7 +6,7 @@
-
name
:
copy Opera files to local machine
become
:
yes
become_user
:
fatehi
# Hack since root is not allowed to view /mnt/las-archiv1
become_user
:
"
{{
user_account
}}"
# Hack since root is not allowed to view /mnt/las-archiv1
copy
:
src
:
/mnt/las-archiv1/system/Opera_RHEL7.tar.bz2
dest
:
/tmp
...
...
@@ -41,7 +41,7 @@
-
name
:
copy libraries from real CentOS 7 host (server)
become
:
yes
become_user
:
fatehi
# see above
become_user
:
"
{{
user_account
}}"
# see above
copy
:
src
:
"
/mnt/las-archiv1/system/Opera/18/CentOS7libs/{{
item.src
}}"
dest
:
"
{{
opera_path
}}/CentOS7libs/{{
item.dest
}}"
...
...
roles/pycharm/tasks/main.yml
View file @
bdabe0ec
...
...
@@ -8,7 +8,7 @@
-
name
:
unarchive
become
:
yes
unarchive
:
src
:
"
https://download
-cf
.jetbrains.com/python/{{
pycharm_name
}}.tar.gz"
src
:
"
https://download.jetbrains.com/python/{{
pycharm_name
}}.tar.gz"
dest
:
/usr/local/pycharm
remote_src
:
yes
creates
:
"
/usr/local/pycharm/{{
pycharm_name
|
regex_replace('-professional')
}}"
...
...
roles/pycharm/vars/main.yml
View file @
bdabe0ec
---
pycharm_name
:
pycharm-professional-201
9
.1.2
pycharm_name
:
pycharm-professional-20
2
1.1.2
old_versions
:
-
pycharm-professional-2019.1.2
-
pycharm-professional-2019.1.1
-
pycharm-professional-2019.1
-
pycharm-professional-2018.3.3
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment