Skip to content

Ansible role for install and configure chroot enviroment

Notifications You must be signed in to change notification settings

gcoop-libre/ansible_role_chroot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role: gcoop-libre.chroot

This role, install and configure chroot enviroment with schroot.

Requirements

None.

Role Variables

Available variables with default values in defaults/main/defaults.yml.

Dependencies

None.

Example Playbook

If you want to configure a chroot Ubuntu Xenial i386.

---

- name: Install and configure chroot enviroment
  hosts: [test]

  roles:
    - role: gcoop-libre.chroot
      chroot_arch: i386
      chroot_os: ubuntu
      chroot_users: xenial
      chroot_version: xenial

Use chroot

List all chroots:


schroot -l

Execute command into chroot:


schroot -c ubuntu-xenial-i386 -u xenial -- cat /etc/debian_chroot

License

GNU General Public License, GPLv3.

Author Information

This role was created in 2019 by Osiris Alejandro Gomez, worker cooperative of gcoop Cooperativa de Software Libre.

About

Ansible role for install and configure chroot enviroment

Resources

Stars

Watchers

Forks

Packages

No packages published