Skip to content

Commit

Permalink
Consistency changes
Browse files Browse the repository at this point in the history
* Ansible 2 fixes
  • Loading branch information
tersmitten committed Jan 6, 2017
1 parent 9ee2979 commit 5ecd84b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## mainwp-crons

[![Build Status](https://travis-ci.org/Oefenweb/ansible-mainwp-crons.svg?branch=master)](https://travis-ci.org/Oefenweb/ansible-mainwp-crons) [![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-mainwp--crons-blue.svg)](https://galaxy.ansible.com/list#/roles/5399)
[![Build Status](https://travis-ci.org/Oefenweb/ansible-mainwp-crons.svg?branch=master)](https://travis-ci.org/Oefenweb/ansible-mainwp-crons) [![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-mainwp--crons-blue.svg)](https://galaxy.ansible.com/tersmitten/mainwp-crons)

Manage [cron jobs](http://docs.mainwp.com/disable-wp-cron/) related to [MainWP](https://mainwp.com/).

Expand Down
11 changes: 2 additions & 9 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@
role = File.basename(File.expand_path(File.dirname(__FILE__)))

boxes = [
{
:name => "ubuntu-1004",
:box => "bento/ubuntu-10.04",
:ip => '10.0.0.10',
:cpu => "50",
:ram => "256"
},
{
:name => "ubuntu-1204",
:box => "bento/ubuntu-12.04",
Expand All @@ -26,8 +19,8 @@ boxes = [
:ram => "256"
},
{
:name => "debian-6010",
:box => "bento/debian-6.0.10",
:name => "ubuntu-1604",
:box => "bento/ubuntu-16.04",
:ip => '10.0.0.13',
:cpu => "50",
:ram => "256"
Expand Down
3 changes: 1 addition & 2 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ galaxy_info:
platforms:
- name: Ubuntu
versions:
- lucid
- precise
- trusty
- xenial
- name: Debian
versions:
- squeeze
- wheezy
- jessie
galaxy_tags:
Expand Down
6 changes: 3 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- name: configure (cron) jobs
cron:
name: "{{ item.0.name }}-{{ item.1.name }}"
job: "wget -O /dev/null {{ item.0.url }}{{ item.1.path }} > /dev/null 2>&1"
job: "wget -O /dev/null {{ item.0.url }}{{ item.1.path }} > /dev/null 2>&1"
state: "{{ item.0.state | default('present') }}"
day: "{{ item.1.day | default('*') }}"
hour: "{{ item.1.hour | default('*') }}"
Expand All @@ -13,8 +13,8 @@
cron_file: mainwp
user: root
with_nested:
- mainwp_crons_sites
- mainwp_crons_jobs
- "{{ mainwp_crons_sites }}"
- "{{ mainwp_crons_jobs }}"
tags:
- configuration
- mainwp-crons

0 comments on commit 5ecd84b

Please sign in to comment.