Skip to content
Snippets Groups Projects
Commit b46fe610 authored by nimrod's avatar nimrod
Browse files

Merge branch 'master' of /home/nimrod/Documents/Shore/Ansible/example

# Conflicts:
#	meta/main.yml
#	tasks/main.yml
#	tests/playbook.yml
parents 60d81e92 4ffb4fa0
Branches
No related tags found
No related merge requests found
---
# tasks file for nodejs
- name: Load meta vars
include_vars:
file: meta/main.yml
name: meta
- name: Assertions
assert:
that:
- ansible_os_family == 'Debian'
- ansible_lsb is mapping
- ansible_lsb.codename in ['buster', 'jessie', 'sid', 'stretch', 'trusty', 'xenial', 'yakkety', 'zesty']
- ansible_distribution in meta.galaxy_info.platforms|map(attribute='name')
- |
(meta.galaxy_info.platforms|selectattr('name', 'equalto', ansible_distribution)|first).versions|intersect([ansible_distribution_release, ansible_distribution_version])|length > 0
- nodejs_version in [6, 8]
- name: APT install prerequisites
......
......@@ -19,4 +19,5 @@
- hosts: all
roles:
- role: python27
- role: nodejs
ansible==2.3.2.0
ansible==2.4.0.0
testinfra==1.7.0
molecule<2
ansible-lint==3.4.15
......
......@@ -5,3 +5,5 @@
name: debian-bootstrap
- src: adarnimrod.users
name: users
- src: adarnimrod.python27
name: python27
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment