neuro_ansible/update_jobs/install_node_packages.yaml

84 lines
2.1 KiB
YAML
Raw Normal View History

2024-04-18 19:12:43 +02:00
---
2024-04-20 02:28:09 +02:00
- name: install cluster stuff
2024-04-18 19:12:43 +02:00
hosts: all
become: true
tasks:
2024-04-25 10:54:35 +02:00
- name: Make sure systemd-oomd service unit is stopped
systemd_service:
state: stopped
name: systemd-oomd
2024-04-18 19:12:43 +02:00
- name: Install base system
include_tasks: yaml_sub/install_base_system.yaml
- name: remove other files
include_tasks: yaml_sub/myrepo_clean.yaml
- name: update file myrepo.repo
import_tasks: yaml_sub/myrepo_data.yaml
- name: make sure gdm is stopped
ansible.builtin.systemd_service:
name: gdm
state: stopped
enabled: false
- name: make sure lxdm is started
ansible.builtin.systemd_service:
name: lxdm
state: started
enabled: true
- name: set cluster crontab
include_tasks: yaml_sub/set_cluster_crontab.yaml
- 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
2024-04-25 10:54:35 +02:00
- name: Change default target to text
2024-04-18 19:12:43 +02:00
file:
src: /usr/lib/systemd/system/multi-user.target
dest: /etc/systemd/system/default.target
state: link
2024-04-20 02:28:09 +02:00
- name: disable tracker
2024-04-18 19:12:43 +02:00
shell: 'for f in /etc/xdg/autostart/tracker*.desktop; do echo "Hidden=true" | tee -a "$f"; done'
2024-04-20 02:28:09 +02:00
2024-04-25 11:14:26 +02:00
- name: Update cuda
2024-04-25 11:02:07 +02:00
dnf:
name: cuda
enablerepo: "*"
update_cache: true
state: latest
skip_broken: true
nobest: false
allowerasing: true
2024-04-25 11:14:26 +02:00
- name: Update rest
dnf:
name: "*"
enablerepo: "*"
update_cache: true
state: latest
skip_broken: true
nobest: false
allowerasing: true
2024-04-25 10:54:35 +02:00
- name: Make sure systemd-oomd service unit is started
systemd_service:
state: started
name: systemd-oomd