tags:
- apache
- packages
- apt: >
- state=present
- name={{ item }}
- with_items:
- - libapache2-mod-php5
- - php5
- - php5-cli
- - php5-mysql
+ apt:
+ state: present
+ name: [
+ 'libapache2-mod-php5',
+ 'php5',
+ 'php5-cli',
+ 'php5-mysql',
+ ]
notify:
- restart "apache2"
tags:
- apache
- packages
- apt: >
- state=present
- name={{ item }}
- with_items:
- - libapache2-mod-php
- - php
- - php-cli
- - php-mysql
- - php-pgsql
+ apt:
+ state: present
+ name: [
+ 'libapache2-mod-php',
+ 'php',
+ 'php-cli',
+ 'php-mysql',
+ 'php-pgsql',
+ ]
notify:
- restart "apache2"
tags:
- apache
- packages
- apt: >
- state=present
- name={{ item }}
- with_items:
- - apache2
- - apache2-utils
- - apachetop
+ apt:
+ state: present
+ name: [
+ 'apache2',
+ 'apache2-utils',
+ 'apachetop',
+ ]
notify:
- restart "apache2"
- check_mk
- monitoring
- packages
- apt: >
- state=present
- name={{ item }}
- with_items:
- - check-mk-agent
- - nagios-plugins-basic
+ apt:
+ state: present
+ name: [
+ 'check-mk-agent',
+ 'nagios-plugins-basic',
+ ]
- name: install Debian packages for Check_MK agent (2/2)
tags:
- name: install common packages
tags:
- packages
- apt: >
- state=present
- name={{ item }}
- with_items:
- - bash-completion
- - ca-certificates
- - curl
- - debconf-utils
- - etckeeper
- - git
- - htop
- - less
- - lsb-base
- - lsb-release
- - psmisc
- - net-tools
- - screen
- - sudo
- - telnet-ssl
- - vim
+ apt:
+ state: present
+ name: [
+ 'bash-completion',
+ 'ca-certificates',
+ 'curl',
+ 'debconf-utils',
+ 'etckeeper',
+ 'git',
+ 'htop',
+ 'less',
+ 'lsb-base',
+ 'lsb-release',
+ 'psmisc',
+ 'net-tools',
+ 'screen',
+ 'sudo',
+ 'telnet-ssl',
+ 'vim',
+ ]
- name: install common packages (non Proxmox-VE hosts)
tags:
- packages
apt: >
state=present
- name={{ item }}
- with_items:
- - busybox-static
+ name=busybox-static
when: "ansible_kernel.find('pve') < 1"
- name: install Linux kernel packages (amd64; non Proxmox-VE hosts, non OpenVZ guest)
tags:
- docker
- packages
- apt: >
- name={{ item }}
- state=present
- with_items:
- - apt-transport-https
- - ca-certificates
+ apt:
+ name: [
+ 'apt-transport-https',
+ 'ca-certificates',
+ ]
+ state: present
when: docker_apt_repository.startswith("https://")
- name: install docker.io repository GnuPG key
- name: install "rsync" and "make"
tags:
- packages
- apt: >
- state=present
- name={{ item }}
- with_items:
- - rsync
- - make
+ apt:
+ state: present
+ name: [
+ 'rsync',
+ 'make',
+ ]
- name: clone "backup-script" GIT repository
tags:
- kexec
apt: >
state=present
- name={{ item }}
- with_items:
- - kexec-tools
+ name=kexec-tools
- name: configure kexec tools
tags:
- name: install packages for cluster nodes
tags:
- packages
- apt: >
- state=present
- name={{ item }}
- with_items:
- - drbd8-utils
- - pacemaker
- - corosync
+ apt:
+ state: present
+ name: [
+ 'drbd8-utils',
+ 'pacemaker',
+ 'corosync',
+ ]
- mysql
- mysqld
- packages
- apt: >
- state=present
- name={{ item }}
- with_items:
- - mysql-client
- - mysql-server
- - mysqltuner
- - python-mysqldb
+ apt:
+ state: present
+ name: [
+ 'mysql-client',
+ 'mysql-server',
+ 'mysqltuner',
+ 'python-mysqldb',
+ ]
- name: ensure service "mysql" is enabled and started
tags:
- nodejs
- packages
apt:
- name: "{{ item }}"
+ name: [
+ 'apt-transport-https',
+ 'ca-certificates',
+ ]
state: present
- with_items:
- - apt-transport-https
- - ca-certificates
when: nodejs_apt_repository.startswith("https://")
- name: install Node.js repository GnuPG key
tags:
- ntpd
- packages
- apt: >
- name={{ item }}
- state=present
- with_items:
- - ntpdate
- - ntp
+ apt:
+ name: [
+ 'ntpdate',
+ 'ntp',
+ ]
+ state: present
- name: ensure service "ntp" is enabled and started
tags:
tags:
- docker
- packages
- apt: >
- name={{ item }}
- state=present
- with_items:
- - apt-transport-https
- - ca-certificates
+ apt:
+ name: [
+ 'apt-transport-https',
+ 'ca-certificates',
+ ]
+ state: present
when: piwik_apt_repository.startswith("https://")
- name: install Piwik repository GnuPG key
- postgresql
apt: >
state=present
- name={{ item }}
- with_items:
- - postgresql-{{ postgresql_major }}
+ name=postgresql-{{ postgresql_major }}
- name: ensure service "postgresql" is enabled and started
tags:
- name: install common packages
tags:
- packages
- apt: >
- state=present
- name={{ item }}
- with_items:
- - 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
+ apt:
+ state: present
+ name: [
+ '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',
+ ]
- packages
apt: >
state=present
- name={{ item }}
- with_items:
- - xinetd
+ name=xinetd