Using YAML syntax to rewrite the ansible tasks

parent eb8a7178
......@@ -25,13 +25,22 @@
#
# adding chris-lea nodejs repo
- name: add ppas for current versions of nodejs
apt_repository: "repo={{ sitespeedio_chrislea_ppa }}"
- name: Add ppas for current versions of nodejs
apt_repository:
repo: "{{ sitespeedio_chrislea_ppa }}"
state: present
# Install Sitespeed Dependencies
- name: install sitespeed.io specific system packages
apt: pkg={{','.join(sitespeedio_debian_pkgs)}} state=present
- name: Anstall sitespeed.io specific system packages
apt:
name: "{{ item }}"
state: present
with_items: "{{ sitespeedio_debian_pkgs }}"
# Install released version of sitespeedio
- name: install sitespeed.io
npm: name=sitespeed.io global=yes state=latest version=3.10.0
- name: Install sitespeed.io
npm:
name: "sitespeed.io"
global: yes
state: latest
version: "3.10.0"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment