ansible role to install mock, clean room package builder for RedHat Enterprise Linux derivative distributions. In addition, this role add user to mock group and initialize chroot repository.
Available role variables are listed below, along with default values:
mock_config: ''
mock_user: mock
mock_config
is a variable to specify mock configuration name in /etc/mock.
if this variable is specified, create mock repository. default ''
no mock repository created.
mock_user
is a variable to specify user to be add in the mock
group.
install mock and add vagrant user to mock group and initialize epel-6-x86_64 repository
- hosts: servers
roles:
- role: uchida.mock
mock_config: epel-6-x86_64
mock_user: vagrant
install mock and add vagrant user to mock group and initialize fedora-rawhide-x86_64, epel-7-x86_64 and epel-6-x86_64 repositories.
- hosts: servers
roles:
- role: uchida.mock
mock_user: vagrant
- role: uchida.mock
mock_config: fedora-rawhide-x86_64
mock_user: vagrant
- role: uchida.mock
mock_config: epel-7-x86_64
mock_user: vagrant
- role: uchida.mock
mock_config: epel-6-x86_64
mock_user: vagrant
dedicated to public domain, no rights reserved.