Major role refactoring

This commit is contained in:
Oleg Vasilev
2022-02-22 01:46:02 +03:00
parent 427b7ecac8
commit ce41bd0da8
13 changed files with 93 additions and 99 deletions

View File

@@ -1,13 +1,49 @@
---
- name: Common | Configure system
import_tasks: system.yml
- name: Common | Configure pacman
import_tasks: pacman.yml
- name: Common | Packages
import_tasks: packages.yml
- name: Common | Set available locales
template:
src: locale.gen.j2
dest: /etc/locale.gen
mode: 0644
owner: root
group: root
notify: Common | Generate locales
- name: Common | Run handlers
meta: flush_handlers
- name: Common | Set system locale
template:
src: locale.conf.j2
mode: 0644
owner: root
group: root
dest: /etc/locale.conf
- name: Common | Set timezone
timezone:
name: "{{ common_timezone }}"
- name: Common | Deploy pacman main config
template:
src: pacman.conf.j2
dest: /etc/pacman.conf
mode: 0644
owner: root
group: root
- name: Common | Setup pacman repos
template:
src: mirrorlist.j2
dest: /etc/pacman.d/mirrorlist
mode: 0644
owner: root
group: root
- name: Common | Install useful common packages
pacman:
state: present
update_cache: yes
name: "{{ common_packages }}"

View File

@@ -1,34 +0,0 @@
---
- name: Common | Install useful packages
pacman:
state: present
update_cache: yes
# Move this to vars and add additional variable for custom packages
name:
- htop
- nano
- strace
- lsof
- wget
- curl
- go
- tcpdump
- nmap
- dosfstools
- arch-install-scripts
- gptfdisk
- bash-completion
- git
- bind
#- block:
# - name: Common | Install yay from aur
# aur:
# name: yay
# use: makepkg
# skip_installed: yes
# become: no

View File

@@ -1,17 +0,0 @@
---
- name: Common | Deploy pacman main config
template:
src: pacman.conf.j2
dest: /etc/pacman.conf
mode: 0644
owner: root
group: root
- name: Common | Setup pacman repos
template:
src: mirrorlist.j2
dest: /etc/pacman.d/mirrorlist
mode: 0644
owner: root
group: root

View File

@@ -1,23 +0,0 @@
---
- name: Common | Set or/and generate locales
template:
src: locale.gen.j2
dest: /etc/locale.gen
mode: 0644
owner: root
group: root
notify: Common | Generate locales
- name: Common | Set system locale
template:
src: locale.conf.j2
mode: 0644
owner: root
group: root
dest: /etc/locale.conf
- name: Common | Set timezone
timezone:
name: Europe/Moscow