oliverdavies.uk-drupal-old/tools/ansible/provision.yml

35 lines
867 B
YAML
Raw Normal View History

2020-02-07 07:42:30 +00:00
---
- hosts: all
vars_files:
- vars/vars.yml
- vars/provision_vars.yml
roles:
- name: geerlingguy.firewall
- name: geerlingguy.security
2020-02-19 01:16:09 +00:00
- name: geerlingguy.certbot
2020-02-07 07:42:30 +00:00
- name: geerlingguy.mysql
- name: geerlingguy.nginx
- name: geerlingguy.php-versions
- name: geerlingguy.php
- name: geerlingguy.composer
- name: geerlingguy.nodejs
tags: [nodejs]
2020-02-07 07:42:30 +00:00
tasks:
- name: Install packages
package:
name: [curl, zip]
state: present
2020-05-19 00:33:55 +00:00
- name: Add cron jobs
cron:
name: Drupal cron - oliverdavies.uk
minute: '*/5'
job: >
{{ project_root_path }}/{{ ansistrano_current_dir }}/vendor/bin/drush core-cron
--root={{ project_root_path }}/{{ ansistrano_current_dir }}/{{ project_web_dir }}
--uri https://www.oliverdavies.uk
--quiet