57 lines
1.1 KiB
YAML
57 lines
1.1 KiB
YAML
---
|
|
- name: Set system timezone
|
|
ansible.builtin.command: timedatectl set-timezone "{{ timezone }}"
|
|
register: output
|
|
changed_when: output.rc != 0
|
|
|
|
- name: Set hostname
|
|
ansible.builtin.hostname:
|
|
name: "{{ provision_hostname }}"
|
|
use: systemd
|
|
|
|
- name: Upgrade all packages
|
|
ansible.builtin.dnf:
|
|
name: "*"
|
|
update_only: true
|
|
|
|
- name: Add CodeReady Builder repo
|
|
ansible.builtin.command: dnf config-manager --set-enabled crb
|
|
register: output
|
|
changed_when: output.rc != 0
|
|
|
|
- name: Install QEMU Guest Agent
|
|
ansible.builtin.dnf:
|
|
name:
|
|
- 'qemu-guest-agent'
|
|
|
|
- name: Enable and start QEMU Guest Agent
|
|
ansible.builtin.service:
|
|
name: qemu-guest-agent
|
|
enabled: yes
|
|
state: started
|
|
|
|
- name: Install EPEL
|
|
ansible.builtin.dnf:
|
|
name:
|
|
- 'epel-release'
|
|
update_cache: true
|
|
|
|
- name: Install Dev Tools
|
|
ansible.builtin.dnf:
|
|
name:
|
|
- '@Development tools'
|
|
update_cache: true
|
|
|
|
- name: Install baseline packages
|
|
ansible.builtin.dnf:
|
|
name:
|
|
- vim
|
|
- curl
|
|
- git
|
|
- bash-completion
|
|
- firewalld
|
|
- fastfetch
|
|
- btop
|
|
state: latest
|
|
update_cache: true
|