Just copy common-2 here
parent
a9e27b0e14
commit
1a6154f411
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
|
||||
- name: System | Generate locales
|
||||
shell: locale-gen
|
|
@ -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
|
|
@ -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
|
||||
|
||||
|
|
@ -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
|
|
@ -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
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
# {{ ansible_managed }}
|
||||
LANG={{ use_system_locale }}
|
|
@ -0,0 +1,4 @@
|
|||
# {{ ansible_managed }}
|
||||
{% for item in system_locales | default([]) %}
|
||||
{{ item }}
|
||||
{% endfor %}
|
|
@ -0,0 +1,4 @@
|
|||
# {{ ansible_managed }}
|
||||
Server = http://mirror.zeym.org/archlinux/$repo/os/$arch
|
||||
Server = http://mirror.yandex.ru/archlinux/$repo/os/$arch
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
# {{ ansible_managed}}
|
||||
[options]
|
||||
# The following paths are commented out with their default values listed.
|
||||
# If you wish to use different paths, uncomment and update the paths.
|
||||
#RootDir = /
|
||||
#DBPath = /var/lib/pacman/
|
||||
#CacheDir = /var/cache/pacman/pkg/
|
||||
#LogFile = /var/log/pacman.log
|
||||
#GPGDir = /etc/pacman.d/gnupg/
|
||||
#HookDir = /etc/pacman.d/hooks/
|
||||
HoldPkg = pacman glibc
|
||||
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
||||
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||
#CleanMethod = KeepInstalled
|
||||
#UseDelta = 0.7
|
||||
Architecture = auto
|
||||
|
||||
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
||||
#IgnorePkg =
|
||||
#IgnoreGroup =
|
||||
|
||||
#NoUpgrade =
|
||||
#NoExtract =
|
||||
|
||||
# Misc options
|
||||
#UseSyslog
|
||||
Color
|
||||
#TotalDownload
|
||||
CheckSpace
|
||||
VerbosePkgLists
|
||||
|
||||
# By default, pacman accepts packages signed by keys that its local keyring
|
||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||
SigLevel = Required DatabaseOptional
|
||||
LocalFileSigLevel = Optional
|
||||
RemoteFileSigLevel = Required
|
||||
|
||||
#[testing]
|
||||
#Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[core]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[extra]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
#[community-testing]
|
||||
#Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
# If you want to run 32 bit applications on your x86_64 system,
|
||||
# enable the multilib repositories as required here.
|
||||
[multilib]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
#[multilib-testing]
|
||||
#Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
|
||||
# An example of a custom package repository. See the pacman manpage for
|
||||
# tips on creating your own repositories.
|
||||
#[custom]
|
||||
#SigLevel = Optional TrustAll
|
||||
#Server = file:///home/custompkgs
|
|
@ -0,0 +1,5 @@
|
|||
# {{ ansible_managed }}
|
||||
[Time]
|
||||
NTP=pool.ntp.org
|
||||
FallbackNTP=0.arch.pool.ntp.org 1.arch.pool.ntp.org 2.arch.pool.ntp.org 3.arch.pool.ntp.org
|
||||
RootDistanceMaxSec=10
|
Loading…
Reference in New Issue