17 lines
439 B
YAML
17 lines
439 B
YAML
- include_vars: packages.yml
|
|
|
|
- name: "update apt cache"
|
|
apt: update_cache=yes
|
|
|
|
- name: Install/update frontend packages to the latest version
|
|
apt: name='{{ item }}' state=latest
|
|
register: apt_updates
|
|
with_items: "{{ required_packages_services }}"
|
|
|
|
- name: Restart php7.1 FPM
|
|
service: name=php7.1-fpm state=restarted enabled=yes
|
|
when: apt_updates.changed
|
|
|
|
- name: Install mysql CLI client
|
|
apt: pkg=mysql-client state=present
|