Skip to content
Snippets Groups Projects
Commit 75f42cc3 authored by Simon Constans's avatar Simon Constans
Browse files

#2 Add --- for all YAML file

parent 2264d7eb
Branches
Tags v1.2.0
No related merge requests found
---
language: python language: python
python: python:
......
---
composer_path: /usr/local/bin/composer composer_path: /usr/local/bin/composer
composer_update: true composer_update: true
composer_update_day: 20 composer_update_day: 20
---
galaxy_info: galaxy_info:
author: kosssi author: kosssi
description: Install and Update Composer PHP Dependency Manager description: Install and Update Composer PHP Dependency Manager
......
---
- name: Download and install Composer into the current directory. - name: Download and install Composer into the current directory.
shell: shell:
php -r "readfile('https://getcomposer.org/installer');" | php php -r "readfile('https://getcomposer.org/installer');" | php
......
---
- include: install.yml - include: install.yml
- include: test.yml - include: test.yml
- include: update.yml - include: update.yml
......
---
- name: Get stat of composer file - name: Get stat of composer file
stat: stat:
path="{{ composer_path }}" path="{{ composer_path }}"
......
---
- name: Get date for composer update - name: Get date for composer update
shell: shell:
date --date="{{ composer_update_day }} days ago" +"%s" date --date="{{ composer_update_day }} days ago" +"%s"
......
---
- hosts: all - hosts: all
sudo: true sudo: true
roles: roles:
- { role: common, tags: apt } - { role: common, tags: apt }
- { role: ../../ansible-role-composer, tags: composer } - { role: ../../ansible-role-composer, tags: composer }
---
- name: Update Apt cache - name: Update Apt cache
apt: apt:
update_cache=yes update_cache=yes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment