libvirt_cloud/roles/ansible-gentoo_install
2024-02-02 09:09:08 +00:00
..
defaults add roles/toxcore 2024-01-08 12:51:06 +00:00
files proxy_ping_test 2024-01-05 11:12:55 +00:00
handlers added roles/ansible-gentoo_install/ 2023-12-29 19:40:31 +00:00
meta added roles/ansible-gentoo_install/ 2023-12-29 19:40:31 +00:00
tasks update 2024-02-02 09:09:08 +00:00
templates add roles/toxcore 2024-01-08 12:51:06 +00:00
vars proxy_ping_test 2024-01-05 11:12:55 +00:00
README.md updates 2023-12-30 22:09:49 +00:00

Ansible role: Gentoo_install

https://github.com/agaffney/ansible-gentoo_install/

Performs an installation of Gentoo Linux against an InstallCD environment.

This role handles all steps required to install Gentoo Linux when run against the InstallCD environment. It will partition, format/mount filesystems, download/extract the stage tarball, configure locales and timezone, build a kernel (using genkernel), install/configure syslog and cron daemons, install grub, unmount filesystems, and reboot.

In order to use this role, you will need to boot the InstallCD image with parameters like:

gentoo dosshd passwd=some_root_pass

create a playbook:

---
- hosts: all
  remote_user: root
  vars:
    # The 'portage' module breaks on py3, which is the default in the stage
    # tarball
    ansible_python_interpreter: /usr/bin/python2
  roles:
    - gentoo_install

and then run ansible with something like:

$ ansible-playbook -i <IP address>, -e ansible_password=some_root_pass -e gentoo_install_hostname=myhostname gentoo_install.yml