Commit bdabe0ec authored by julian.gethmann's avatar julian.gethmann
Browse files

Fix bugs/updates for Fedora 34

parent 2ac6cc0a
......@@ -22,7 +22,7 @@ python3pkg:
- python3-Cython
- nodejs
- nodejs-libs
- kf5-purpose-twitter
#- kf5-purpose-twitter
- npm
python2pkg: ""
......
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
......
......@@ -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
......
......@@ -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 }}"
......
......@@ -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') }}"
......
---
pycharm_name: pycharm-professional-2019.1.2
pycharm_name: pycharm-professional-2021.1.2
old_versions:
- pycharm-professional-2019.1.2
- pycharm-professional-2019.1.1
- pycharm-professional-2019.1
- pycharm-professional-2018.3.3
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment