Files
@ cb413875da2f
Branch filter:
Location: ChaosStuff/cnc-dashboard/roles/initial/tasks/main.yml - annotation
cb413875da2f
633 B
text/x-yaml
Use shellvariable EUID to check if we are root
c3309581c2ac c3309581c2ac c3309581c2ac c3309581c2ac c3309581c2ac c3309581c2ac c3309581c2ac c3309581c2ac c3309581c2ac c3309581c2ac c3309581c2ac c3309581c2ac c3309581c2ac c3309581c2ac c3309581c2ac c3309581c2ac c3309581c2ac c3309581c2ac c3309581c2ac c3309581c2ac c3309581c2ac c3309581c2ac c3309581c2ac c3309581c2ac | # This role copies over the right SSH host keys, sets up some tools and creates the users
- name: Set up host ssh keys
import_tasks: ssh_host.yml
- name: Update system
become: yes
become_method: su
become_user: "root"
vars:
ansible_become_pass: root
community.general.pacman:
update_cache: yes
upgrade: yes
- name: Install basic tools (sudo, vim, etc.)
import_tasks: tools.yml
- name: Create users
import_tasks: users.yml
- name: Change hostname
become: yes
become_method: su
become_user: "root"
vars:
ansible_become_pass: root
ansible.builtin.hostname:
name: "{{ inventory_hostname }}"
|