Update 17 04 2024

This commit is contained in:
David Rotermund 2024-04-17 22:57:11 +02:00
parent 9f8b6560ba
commit c0dd2fb418
20 changed files with 161 additions and 75 deletions

78
install_repo.yaml Normal file
View file

@ -0,0 +1,78 @@
---
- name: install repo
hosts: all
become: true
tasks:
- name: remove other files
include_tasks: yaml_sub/myrepo_clean.yaml
- name: update file myrepo.repo
import_tasks: yaml_sub/myrepo_data.yaml
- name: install nfs tools
dnf:
name: nfs-utils,nfs-utils-coreos,nfsv4-client-utils,rpcbind
state: present
update_cache: true
skip_broken: true
nobest: false
allowerasing: true
- name: Make sure rpcbind service unit is started
systemd_service:
enabled: true
state: started
name: rpcbind
- name: Mount /web
ansible.posix.mount:
src: 10.10.1.51:/volume1/web
path: /web
opts: rw,sync,hard,nolock
boot: true
state: mounted
fstype: nfs
- name: remove other files
include_tasks: yaml_sub/myrepo_clean.yaml
- name: update file myrepo.repo
import_tasks: yaml_sub/myrepo_data.yaml
- name: install client
ansible.builtin.dnf:
name: "http://10.10.0.3/cmk/check_mk/agents/check-mk-agent-2.2.0p24-1.noarch.rpm"
state: present
update_cache: true
skip_broken: true
nobest: false
allowerasing: true
disable_gpg_check: true
- name: remove other files
include_tasks: yaml_sub/install_docker.yaml
- name: Create volume code data
community.docker.docker_volume:
name: code_data
state: present
- name: Create httpd container
community.docker.docker_container:
name: httpd
image: httpd:alpine
state: started
recreate: yes
restart_policy: always
volumes:
- "/web:/usr/local/apache2/htdocs/"
published_ports:
- "80:80/tcp"

View file

@ -1 +1 @@
ansible.neuro.uni-bremen.de ansible.neuro.uni-bremen.de ansible_user=ansibleuser

View file

@ -1,2 +1,2 @@
check.neuro.uni-bremen.de check.neuro.uni-bremen.de ansible_user=ansibleuser

View file

@ -1,43 +1,43 @@
gate0 gate0 ansible_user=ansibleuser
gate1 gate1 ansible_user=ansibleuser
gate2 gate2 ansible_user=ansibleuser
gp3u1 gp3u1 ansible_user=ansibleuser
gp3u2 gp3u2 ansible_user=ansibleuser
gp4u1 gp4u1 ansible_user=ansibleuser
gp4u2 gp4u2 ansible_user=ansibleuser
gp4u3 gp4u3 ansible_user=ansibleuser
gp4u4 gp4u4 ansible_user=ansibleuser
gp4u5 gp4u5 ansible_user=ansibleuser
gp4u6 gp4u6 ansible_user=ansibleuser
gp4u7 gp4u7 ansible_user=ansibleuser
granat1 granat1 ansible_user=ansibleuser
granat2 granat2 ansible_user=ansibleuser
granat3 granat3 ansible_user=ansibleuser
granat4 granat4 ansible_user=ansibleuser
granat5 granat5 ansible_user=ansibleuser
granat6 granat6 ansible_user=ansibleuser
granat7 granat7 ansible_user=ansibleuser
granat8 granat8 ansible_user=ansibleuser
octopode octopode ansible_user=ansibleuser
doppio doppio ansible_user=ansibleuser
fatbastard fatbastard ansible_user=ansibleuser
nc46 nc46 ansible_user=ansibleuser
nc47 nc47 ansible_user=ansibleuser
nc48 nc48 ansible_user=ansibleuser
nc49 nc49 ansible_user=ansibleuser
nc50 nc50 ansible_user=ansibleuser
nc51 nc51 ansible_user=ansibleuser
nc52 nc52 ansible_user=ansibleuser
nc53 nc53 ansible_user=ansibleuser
nc54 nc54 ansible_user=ansibleuser
nc55 nc55 ansible_user=ansibleuser
nc56 nc56 ansible_user=ansibleuser
nc57 nc57 ansible_user=ansibleuser
nc58 nc58 ansible_user=ansibleuser
nc59 nc59 ansible_user=ansibleuser
nc60 nc60 ansible_user=ansibleuser
nc61 nc61 ansible_user=ansibleuser
nc62 nc62 ansible_user=ansibleuser
nc63 nc63 ansible_user=ansibleuser
nc64 nc64 ansible_user=ansibleuser
nc66 nc66 ansible_user=ansibleuser

View file

@ -1 +1 @@
10.10.0.10 10.10.0.10 ansible_user=ansibleuser

View file

@ -1 +1 @@
crystal.neuro.uni-bremen.de crystal.neuro.uni-bremen.de ansible_user=ansibleuser

View file

@ -1 +1 @@
cups.neuro.uni-bremen.de cups.neuro.uni-bremen.de ansible_user=ansibleuser

View file

@ -1 +1 @@
10.10.0.5 10.10.0.5 ansible_user=ansibleuser

View file

@ -1 +1 @@
10.10.0.6 10.10.0.6 ansible_user=ansibleuser

View file

@ -1 +1 @@
haggis.neuro.uni-bremen.de haggis.neuro.uni-bremen.de ansible_user=ansibleuser

View file

@ -1 +1 @@
hawaii.neuro.uni-bremen.de hawaii.neuro.uni-bremen.de ansible_user=ansibleuser

View file

@ -1 +1 @@
10.10.0.5 10.10.0.5 ansible_user=ansibleuser

View file

@ -1 +1 @@
ldap.neuro.uni-bremen.de ldap.neuro.uni-bremen.de ansible_user=ansibleuser

1
machines/repo Normal file
View file

@ -0,0 +1 @@
repo.neuro.uni-bremen.de ansible_user=ansibleuser

View file

@ -1 +1 @@
semaphore.neuro.uni-bremen.de semaphore.neuro.uni-bremen.de ansible_user=ansibleuser

View file

@ -1 +1 @@
10.10.0.7 10.10.0.7 ansible_user=ansibleuser

View file

@ -1 +1 @@
takatuka.neuro.uni-bremen.de takatuka.neuro.uni-bremen.de ansible_user=ansibleuser

View file

@ -1 +1 @@
tea.neuro.uni-bremen.de tea.neuro.uni-bremen.de ansible_user=ansibleuser

View file

@ -0,0 +1,7 @@
apt-get update
apt install software-properties-common
add-apt-repository --yes --update ppa:ansible/ansible
apt install ansible
apt install mc vi sshpass ssh-keygen inetutils-ping

View file

@ -10,103 +10,103 @@
block: | block: |
[FEDORACORE] [FEDORACORE]
name=Fedora Core $releasever name=Fedora Core $releasever
baseurl=http://10.10.1.1/repos/Fedora/$releasever/Fedora/os baseurl=http://10.10.0.11/repos/Fedora/$releasever/Fedora/os
enabled=1 enabled=1
gpgcheck=0 gpgcheck=0
[FEDORAUPDATE] [FEDORAUPDATE]
name=Fedora Update $releasever name=Fedora Update $releasever
baseurl=http://10.10.1.1/repos/Fedora/$releasever/Fedora_Update baseurl=http://10.10.0.11/repos/Fedora/$releasever/Fedora_Update
enabled=1 enabled=1
gpgcheck=0 gpgcheck=0
[CUDA_37] [CUDA_37]
name=NVidia Cuda 37 name=NVidia Cuda 37
baseurl=http://10.10.1.1/repos/Fedora/AllVersion/cuda_37 baseurl=http://10.10.0.11/repos/Fedora/AllVersion/cuda_37
enabled=0 enabled=0
gpgcheck=0 gpgcheck=0
[CUDA_36] [CUDA_36]
name=NVidia Cuda 36 name=NVidia Cuda 36
baseurl=http://10.10.1.1/repos/Fedora/AllVersion/cuda_36 baseurl=http://10.10.0.11/repos/Fedora/AllVersion/cuda_36
enabled=0 enabled=0
gpgcheck=0 gpgcheck=0
[CUDA_35] [CUDA_35]
name=NVidia Cuda 35 name=NVidia Cuda 35
baseurl=http://10.10.1.1/repos/Fedora/AllVersion/cuda_35 baseurl=http://10.10.0.11/repos/Fedora/AllVersion/cuda_35
enabled=0 enabled=0
gpgcheck=0 gpgcheck=0
[CUDA_RHEL8] [CUDA_RHEL8]
name=NVidia Cuda RHEL 8 name=NVidia Cuda RHEL 8
baseurl=http://10.10.1.1/repos/Fedora/AllVersion/cuda_rhel8 baseurl=http://10.10.0.11/repos/Fedora/AllVersion/cuda_rhel8
enabled=0 enabled=0
gpgcheck=0 gpgcheck=0
[Google] [Google]
name=Google name=Google
baseurl=http://10.10.1.1/repos/Fedora/AllVersion/google_64 baseurl=http://10.10.0.11/repos/Fedora/AllVersion/google_64
enabled=1 enabled=1
gpgcheck=0 gpgcheck=0
[oneAPI] [oneAPI]
name=oneAPI name=oneAPI
baseurl=http://10.10.1.1/repos/Fedora/AllVersion/oneAPI baseurl=http://10.10.0.11/repos/Fedora/AllVersion/oneAPI
enabled=1 enabled=1
gpgcheck=0 gpgcheck=0
[Opera] [Opera]
name=Opera name=Opera
baseurl=http://10.10.1.1/repos/Fedora/AllVersion/opera/rpm.opera.com/rpm baseurl=http://10.10.0.11/repos/Fedora/AllVersion/opera/rpm.opera.com/rpm
enabled=1 enabled=1
gpgcheck=0 gpgcheck=0
[RPMFusionFreeUpdate] [RPMFusionFreeUpdate]
name=RPM Fusion Free Update $releasever name=RPM Fusion Free Update $releasever
baseurl=http://10.10.1.1/repos/Fedora/$releasever/fusion_free/ baseurl=http://10.10.0.11/repos/Fedora/$releasever/fusion_free/
enabled=1 enabled=1
gpgcheck=0 gpgcheck=0
[RPMFusionNonFreeUpdate] [RPMFusionNonFreeUpdate]
name=RPM Fusion Non Free Update $releasever name=RPM Fusion Non Free Update $releasever
baseurl=http://10.10.1.1/repos/Fedora/$releasever/fusion_nonfree/ baseurl=http://10.10.0.11/repos/Fedora/$releasever/fusion_nonfree/
enabled=1 enabled=1
gpgcheck=0 gpgcheck=0
[RPMFusionFreeEverything] [RPMFusionFreeEverything]
name=RPM Fusion Free Everything $releasever name=RPM Fusion Free Everything $releasever
baseurl=http://10.10.1.1/repos/Fedora/$releasever/fusion_free2/os baseurl=http://10.10.0.11/repos/Fedora/$releasever/fusion_free2/os
enabled=1 enabled=1
gpgcheck=0 gpgcheck=0
[RPMFusionNonFreeEverything] [RPMFusionNonFreeEverything]
name=RPM Fusion Non Free Everything $releasever name=RPM Fusion Non Free Everything $releasever
baseurl=http://10.10.1.1/repos/Fedora/$releasever/fusion_nonfree2/os baseurl=http://10.10.0.11/repos/Fedora/$releasever/fusion_nonfree2/os
enabled=1 enabled=1
gpgcheck=0 gpgcheck=0
[SGE] [SGE]
name=SGE name=SGE
baseurl=http://10.10.1.1/repos/Fedora/32/sge/copr-be.cloud.fedoraproject.org/results/loveshack/SGE/fedora-32-x86_64 baseurl=http://10.10.0.11/repos/Fedora/32/sge/copr-be.cloud.fedoraproject.org/results/loveshack/SGE/fedora-32-x86_64
enabled=1 enabled=1
gpgcheck=0 gpgcheck=0
[VSCode] [VSCode]
name=VS Code name=VS Code
baseurl=http://10.10.1.1/repos/Fedora/AllVersion/vscode/packages.microsoft.com/yumrepos/vscode baseurl=http://10.10.0.11/repos/Fedora/AllVersion/vscode/packages.microsoft.com/yumrepos/vscode
enabled=1 enabled=1
gpgcheck=0 gpgcheck=0
[zoom] [zoom]
name=zoom name=zoom
baseurl=http://10.10.1.1/repos/Fedora/AllVersion/zoom baseurl=http://10.10.0.11/repos/Fedora/AllVersion/zoom
enabled=1 enabled=1
gpgcheck=0 gpgcheck=0
[msedge] [msedge]
name=msedge name=msedge
baseurl=http://10.10.1.1/repos/Fedora/AllVersion/edge/packages.microsoft.com/yumrepos/edge baseurl=http://10.10.0.11/repos/Fedora/AllVersion/edge/packages.microsoft.com/yumrepos/edge
enabled=1 enabled=1
gpgcheck=0 gpgcheck=0