# Alex' Ansible Roles Repository This repository contains Ansible roles that are targeted for Debian GNU/Linux version 7 (Wheezy) systems. ## Available Roles ### ansible-base Configure the target system to be managed by Ansible, update *logcheck(8)* configuration, for example. ### apache2 Default Apache 2.x setup. #### Depends on / Pulls in - os-base #### Installed Packages - apache2-mpm-prefork - apache2-utils - apachetop ### apache2-php5 Default Apache 2.x setup with PHP 5.x. #### Depends on / Pulls in - apache2 #### Installed Packages - libapache2-mod-php5 - php5 - php5-apcu | php-apc - php5-cli - php5-mysql ### apt-base Generic configuration for APT-based Linux systems. ### autofs NFS "automounter" (autofs) setup including `/net/hostname` pseudo directory hierarchy. #### Depends on / Pulls in - os-base - xinetd #### Installed Packages - autofs ### check-mk-agent #### Depends on / Pulls in - os-base #### Installed Packages - check-mk-agent - check-mk-agent-logwatch - nagios-plugins-basic ### debian-base Basic Debian setup, including APT and Debconf configuration as well as a set of standard packages. #### Installed Packages - bash-completion - ca-certificates - curl - debconf-utils - etckeeper - git - htop - less - lsb-base - lsb-release - psmisc - net-tools - screen - sudo - telnet-ssl - vim ### docker-engine #### Depends on / Pulls in - os-base #### Installed Packages - apt-transport-https - ca-certificates - docker-engine #### Variables - `docker_apt_repository` ### git-backup-script Local "BackupScript" installation from the GIT repository of Alex (see https://arthur.barton.de/cgi-bin/gitweb.cgi?p=backup-script.git). #### Depends on / Pulls in - os-base #### Installed Packages - rsync ### git-configscripts Local "ConfigScripts" installation from the GIT repository of Alex (see https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ConfigScripts.git). #### Depends on / Pulls in - os-base #### Variables - `git_configscripts_users`: List of existing users to update. ### git-nagcollect Local "NagCollect" client installation from the GIT repository of Alex (see https://arthur.barton.de/cgi-bin/gitweb.cgi?p=nagcollect.git). #### Depends on / Pulls in - os-base #### Variables - `nagcollect_server_url`: Server URL. - `nagcollect_client_key`: Client key ("password"). - `nagcollect_client_id`: Client (host) identifier. ### lcmc-cluster-node Setup for Linux clusters running DRBD, Pacemaker, and Corosync using the "Linux Cluster Management Console" (LCMC, see http://lcmc.sourceforge.net). #### Depends on / Pulls in - os-base - sshd - ntpd #### Installed Packages - drbd8-utils - pacemaker - corosync ### linux-zfs #### Depends on / Pulls in - os-base #### Installed Packages - zfsutils ### mysql-server MySQL Server setup, including a separate LVM data partition, if desired. #### Depends on / Pulls in - os-base #### Variables - `mysql_server_vg`: LVM volume group name. - `mysql_server_ansible_user`: MySQL management user. Default "ansible". - `mysql_server_ansible_password`: Password of management user. Default "ansible". - `mysql_server_root_host`: Hostname for MySQL "root" user. Default "localhost". - `mysql_server_root_password`: Password for the MySQL "root" user. #### Installed Packages - mysql-client - mysql-server - mysqltuner - python-mysqldb ### net-base Basic networking configuration, including the target hostname which is set to the Ansible inventory hostname. ### nfs-client NFS client setup. #### Depends on / Pulls in - os-base #### Variables - `nfs_client_domain`: NFSv4 client domain. Default: `ansible_domain`. #### Installed Packages - nfs-common ### ntpd Local *ntpd(8)* setup. #### Depends on / Pulls in - os-base #### Installed Packages - ntpdate - ntp ### os-base Generic "base role" for the operating system, pulls in the actual OS and distribution specific role (e. g. "debian-base"). ### piwik #### Depends on / Pulls in - os-base - apache2-php5 #### Installed Packages - piwik #### Variables - `piwik_apt_repository` - `piwik_vhost_ipa` - `piwik_vhost_port` - `piwik_vhost_fqdn` - `piwik_admin_email` - `piwik_db_host`: Initial database host. - `piwik_db_user`: Initial database user. - `piwik_db_password`: Initial database password. - `piwik_db_name`: Initial database name. - `piwik_trusted_hosts`: Initial list of trusted hosts. ### postfix Postfix SMTP server setup. #### Depends on / Pulls in - os-base #### Installed Packages - postfix ### postgresql-server #### Depends on / Pulls in - os-base #### Installed Packages - postgresql-$postgresql_major #### Variables - `postgresql_major` ### sshd SSH daemon setup. Please note that this role always updates the SSH packages to the latest version and not only makes sure that a "ssh" package is installed, like most other roles in this repository. #### Depends on / Pulls in - os-base #### Installed Packages - openssh-blacklist-extra - ssh ### systemd Base role for systemd-based systems. ### ubuntu-base Basic Ubuntu setup, including APT and Debconf configuration as well as a set of standard packages. #### Installed Packages - bash-completion - busybox-static - ca-certificates - curl - debconf-utils - etckeeper - git - htop - less - linux-image-generic - lsb-base - lsb-release - psmisc - net-tools - screen - sudo - telnet-ssl - vim ### xinetd #### Depends on / Pulls in - os-base #### Installed Packages - xinetd ### zabbix-agent #### Depends on / Pulls in - os-base #### Installed Packages - zabbix-agent #### Variables - `zabbix_agent_pkg_file` - `zabbix_agent_pkg_url` - `zabbix_agent_pkg_sha` - `zabbix_agent_server`: Zabbix server host for "passive" agent checks, empty to disable. - `zabbix_agent_prefork`: Number of agent processes for "passive" checks (0 to disable). - `zabbix_agent_server_active`: Zabbix server host (for "active" agent checks, empty to disable). - `zabbix_agent_metadata`: Zabbix agent "HostMetadata" (for auto-registration).