diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2018-12-03 03:21:42 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2018-12-03 03:43:42 +0100 |
commit | cfedc9e785831d54195b120300932f74f9808daf (patch) | |
tree | 3f906311a6d2a7340b9d9012f23c07c95e8015b2 /roles/webmail/tasks/roundcube.yml | |
parent | f01876604da167b36780e53ce54cd89c8f9d5f85 (diff) |
Upgrade syntax to Ansible 2.7 (apt module).
Diffstat (limited to 'roles/webmail/tasks/roundcube.yml')
-rw-r--r-- | roles/webmail/tasks/roundcube.yml | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/roles/webmail/tasks/roundcube.yml b/roles/webmail/tasks/roundcube.yml index 5f41ba0..699815a 100644 --- a/roles/webmail/tasks/roundcube.yml +++ b/roles/webmail/tasks/roundcube.yml @@ -1,70 +1,73 @@ - name: Install PHP - apt: pkg={{ item }} - with_items: + apt: pkg={{ packages }} + vars: + packages: - php5-fpm - php5-ldap - php5-gd - php5-apcu # spell-checking - php5-enchant - name: Configure PHP5 APCu copy: src=etc/php5/mods-available/apcu.ini dest=/etc/php5/mods-available/apcu.ini owner=root group=root mode=0644 notify: - Restart php5 - name: Configure PHP5 Zend opcache lineinfile: dest=/etc/php5/fpm/php.ini regexp='^;?{{ item.var }}\\s*=' line="{{ item.var }} = {{ item.value }}" owner=root group=root mode=0644 with_items: - { var: opcache.enable, value: 1 } - { var: opcache.enable_cli, value: 1 } - { var: opcache.memory_consumption, value: 128 } - { var: opcache.interned_strings_buffer, value: 8 } - { var: opcache.max_accelerated_files, value: 2048 } - { var: opcache.revalidate_freq, value: 60 } - { var: opcache.fast_shutdown, value: 1 } notify: - Restart php5 - name: Install GNU Aspell and some dictionaries - apt: pkg={{ item }} - with_items: + apt: pkg={{ packages }} + vars: + packages: - aspell - aspell-da - aspell-de - aspell-en - aspell-es - aspell-fr - aspell-no - aspell-sv - name: Install Roundcube - apt: pkg={{ item }} default_release={{ ansible_lsb.codename }}-backports - with_items: + apt: pkg={{ packages }} default_release={{ ansible_lsb.codename }}-backports + vars: + packages: - roundcube-core - roundcube-mysql - roundcube-plugins - php-net-sieve - php-net-ldap3 - name: Copy fripost's logo copy: src=usr/share/roundcube/skins/{{ item }}/images/fripost_logo.png dest=/usr/share/roundcube/skins/{{ item }}/images/fripost_logo.png owner=root group=root mode=0644 with_items: - classic - larry - name: Configure Roundcube lineinfile: dest=/etc/roundcube/config.inc.php regexp='^\\s*\\$config\\[\'{{ item.var }}\'\\]\\s*=' line='$config[\'{{ item.var }}\'] = {{ item.value }};' owner=root group=www-data |