/koha-2011-centos7-ansible

Primary LanguageShellGNU General Public License v3.0GPL-3.0

ANSIBLE PLAYBOOK FOR CENTOS 7 AND KOHA 20.11

  1. Install Core CentOS 7 (1810) – Choose Server GUI software package, Connect to Network, set hostname, set time zone, make partitions as needed, set root password and create Admin user (koha-admin)
  2. Update CentOS – sudo yum update
  3. Enable EPEL – sudo yum -y install epel-release
  4. Update Install – sudo yum -y update
  5. Install Apache - sudo yum -y install httpd
  6. Install Ansible and MySQL Python - sudo yum -y install ansible MySQL-python git cpanminus perl*
  7. Create user koha, group koha and add koha (user) to koha and apache groups
    • sudo adduser koha
    • sudo adduser koha-admin # currently expects to build in /home/koha-admin
    • sudo usermod -a -G koha koha
    • sudo usermod -a -G apache koha
  8. Clone or Download ansible playbook
  9. Go to Download Location of ansible playbook
  10. Run Ansible - sudo ansible-playbook --connection local -i inventory.ini -u koha --step koha.yml
  11. Secure MySQL Database - sudo mysql_secure_installation
  12. Find IP address of install server or localhost on port 8080 (localhost:8080) and begin web installation (username: kohaadmin password:katikoan)
  13. Go to About Koha and update required Perl modules manually with cpanm (ex:sudo cpanm Module::Name)
  14. Start and enable memcached at boot:
    • sudo systemctl start memcached
    • sudo systemctl enable memcached
# koha-ansible-V2 # koha-ansible-v2