71 lines
2.1 KiB
YAML
71 lines
2.1 KiB
YAML
|
# -*- mode: yaml; indent-tabs-mode: nil; tab-width: 2; coding: utf-8-unix -*-
|
||
|
|
||
|
---
|
||
|
|
||
|
- name: "base Gentoo openrc.yml"
|
||
|
debug:
|
||
|
verbosity: 1
|
||
|
msg: "base Gentoo openrc.yml"
|
||
|
|
||
|
- name: "/etc/elogind/logind.conf"
|
||
|
lineinfile:
|
||
|
dest: /etc/elogind/logind.conf
|
||
|
regexp: '^#* *{{LOOP_ELT.name}}.*'
|
||
|
line: "{{ LOOP_ELT.name}}={{LOOP_ELT.val }}"
|
||
|
state: present
|
||
|
with_items:
|
||
|
- { name: "RuntimeDirectorySize", val: "5%" }
|
||
|
ignore_errors: true
|
||
|
loop_control:
|
||
|
loop_var: LOOP_ELT
|
||
|
|
||
|
- name: "/etc/portage/make.conf base Gentoo DISTDIR"
|
||
|
blockinfile:
|
||
|
dest: /etc/portage/make.conf
|
||
|
create: false
|
||
|
marker: "# {mark} ANSIBLE MANAGED BLOCK base Gentoo [DISTDIR]"
|
||
|
block: |
|
||
|
DISTDIR='/usr/portage/distfiles'
|
||
|
|
||
|
- name: "/etc/portage/make.conf base Gentoo systemd USE"
|
||
|
blockinfile:
|
||
|
dest: /etc/portage/make.conf
|
||
|
create: false
|
||
|
marker: "# {mark} ANSIBLE MANAGED BLOCK base Gentoo systemd [USE]"
|
||
|
block: |
|
||
|
# USE="elogind -consolekit -systemd" https://forums.gentoo.org/viewtopic-t-1086878-start-0.html
|
||
|
# FixMe: eudev or udev
|
||
|
# elogind is right
|
||
|
USE="${USE} udev elogind libnotify -consolekit -systemd " # -ipv6
|
||
|
|
||
|
- name: "/etc/portage/package.use/2001-02_systemd.txt base Systemd libudev"
|
||
|
blockinfile:
|
||
|
dest: //etc/portage/package.use/2020-01_systemd.txt
|
||
|
create: yes
|
||
|
marker: "# {mark} Ansible Managed Block base Gentoo systemd libudev"
|
||
|
block: |
|
||
|
# The first one doesnt do it - for lvm2
|
||
|
virtual/libudev static-libs
|
||
|
>=virtual/libudev-215-r1 static-libs
|
||
|
>=virtual/libudev-232 static-libs
|
||
|
|
||
|
- name: "/etc/portage/package.use/2001-02_systemd.txt base Systemd eudev"
|
||
|
blockinfile:
|
||
|
dest: //etc/portage/package.use/2020-01_systemd.txt
|
||
|
create: yes
|
||
|
marker: "# {mark} Ansible Managed Block base Gentoo systemd eudev"
|
||
|
block: |
|
||
|
# required
|
||
|
>=sys-fs/eudev-3.1.5 static-libs
|
||
|
|
||
|
- name: "/etc/portage/package.mask/2019-07_systemd.txt"
|
||
|
blockinfile:
|
||
|
dest: /etc/portage/package.mask/2019-07_systemd.txt
|
||
|
create: yes
|
||
|
marker: "# {mark} Ansible Managed Block base systemd"
|
||
|
block: |
|
||
|
sys-apps/systemd
|
||
|
#https://wiki.gentoo.org/wiki/Gentoo_Without_systemd
|
||
|
|
||
|
|