Just copy common-2 here

This commit is contained in:
Oleg Vasilev
2022-01-26 00:39:23 +03:00
parent a9e27b0e14
commit 1a6154f411
10 changed files with 170 additions and 0 deletions

13
tasks/main.yml Normal file
View File

@@ -0,0 +1,13 @@
---
- 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 | Run handlers
meta: flush_handlers

32
tasks/packages.yml Normal file
View File

@@ -0,0 +1,32 @@
---
- name: Packages | Install useful packages
pacman:
state: present
update_cache: yes
name:
- htop
- nano
- strace
- lsof
- wget
- curl
- go
- tcpdump
- nmap
- dosfstools
- arch-install-scripts
- gptfdisk
- bash-completion
- git
#- block:
# - name: Packages | Install yay from aur
# aur:
# name: yay
# use: makepkg
# skip_installed: yes
# become: no

17
tasks/pacman.yml Normal file
View File

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

23
tasks/system.yml Normal file
View File

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