You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.6 KiB
YAML

2 years ago
---
- name: Prepare environment (as admin)
hosts: nodes
remote_user: admin
tasks:
- name: Install needed pip packages
ansible.builtin.command:
cmd: pip install picotui getmac pyaml requests psutil urllib3
- name: Copy .xinitrc
ansible.builtin.copy:
src: ./.xinitrc
dest: /home/admin/.xinitrc
2 years ago
- name: Copy .bash_profile
ansible.builtin.copy:
src: ./.bash_profile
dest: /home/admin/.bash_profile
force: true
2 years ago
- name: Clone repository with client application
ansible.builtin.git:
2 years ago
dest: /home/admin/client-application
2 years ago
repo: https://git.nixenos.ovh/engineering-degree/client-application.git
- name: Copy proper config file for valhalla
ansible.builtin.copy:
dest: /home/admin/config.yml
src: valhalla-config.yml
force: true
2 years ago
- name: Give proper permissions
ansible.builtin.file:
mode: 0777
path: /home/admin/client-application/vm_run_script.template
2 years ago
- name: Prepare i3 config directory
ansible.builtin.file:
state: directory
path: /home/admin/.config/i3
- name: Copy i3config
ansible.builtin.copy:
src: ./i3-config
dest: /home/admin/.config/i3/config
force: true
- name: Enable autologin
hosts: nodes
2 years ago
remote_user: admin
2 years ago
tasks:
- name: Create needed systemd directory
ansible.builtin.file:
state: directory
path: /etc/systemd/system/getty@tty1.service.d
2 years ago
become: true
2 years ago
- name: Copy new tty service file
ansible.builtin.copy:
src: ./tty-override.conf
dest: /etc/systemd/system/getty@tty1.service.d/override.conf
2 years ago
become: true