-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c3ff1ff
Showing
14 changed files
with
208 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
|
||
stages: | ||
- test | ||
|
||
before_script: | ||
# Install tests rules | ||
- git clone https://github.com/arillso/tests tests | ||
|
||
lint: | ||
stage: test | ||
image: index.docker.io/arillso/ansible-lint | ||
script: | ||
# Ansible Lint check | ||
- ansible-lint -R -r tests/lint-rules/ . | ||
|
||
# YAML Lint check | ||
- yamllint -c tests/yaml-lint/yamllint.yml . | ||
|
||
tags: | ||
- shared |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
language: python | ||
python: "2.7" | ||
|
||
# Use the new container infrastructure | ||
sudo: false | ||
|
||
# Install ansible | ||
addons: | ||
apt: | ||
packages: | ||
- python-pip | ||
|
||
install: | ||
# Install ansible | ||
- pip install ansible | ||
|
||
# Install ansible-lint | ||
- pip install ansible-lint | ||
|
||
# Install yamllint | ||
- pip install yamllint | ||
|
||
# Install tests rules | ||
- git submodule add https://github.com/arillso/tests tests | ||
|
||
before_script: | ||
# Check ansible version | ||
- ansible --version | ||
|
||
# Check ansible-lint version | ||
- ansible-lint --version | ||
|
||
# Check ansible-lint version | ||
- yamllint --version | ||
|
||
script: | ||
# Ansible Lint check | ||
- ansible-lint -R -r tests/ansible-lint/ . | ||
|
||
# YAML Lint check | ||
- yamllint -c tests/yaml-lint/yamllint.yml . | ||
|
||
notifications: | ||
webhooks: https://galaxy.ansible.com/api/v1/notifications/ | ||
email: | ||
on_success: never | ||
on_failure: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Ansible Role: ca-certificates | ||
|
||
[![Build Status](https://img.shields.io/travis/arillso/ansible.ca-certificates.svg?branch=master&style=popout-square)](https://travis-ci.org/arillso/ansible.ca-certificates) [![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=popout-square)](https://sbaerlo.ch/licence) [![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-ca-certificates-blue.svg?style=popout-square)](https://galaxy.ansible.com/arillso/ca-certificates) [![Ansible Role](https://img.shields.io/ansible/role/d/id.svg?style=popout-square)](https://galaxy.ansible.com/arillso/ca-certificates) | ||
|
||
## Description | ||
|
||
## Installation | ||
|
||
```bash | ||
ansible-galaxy install arillso.ca-certificates | ||
``` | ||
|
||
## Requirements | ||
|
||
## Role Variables | ||
|
||
| Variable | Default | Comments (type) | | ||
| :--- | :--- | :--- | | ||
| | | | | ||
| | | | | ||
|
||
## Dependencies | ||
|
||
## Example Playbook | ||
|
||
```yml | ||
- hosts: all | ||
roles: | ||
- arillso.ca-certificates | ||
``` | ||
|
||
## Changelog | ||
|
||
## Author | ||
|
||
* [Simon Bärlocher](https://sbaerlocher.ch) | ||
|
||
## License | ||
|
||
This project is under the MIT License. See the [LICENSE](https://sbaerlo.ch/licence) file for the full license text. | ||
|
||
## Copyright | ||
|
||
(c) 2019, Simon Bärlocher |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
# defaults file for arillso.ca-certificates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
# handlers file for arillso.ca-certificates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
|
||
galaxy_info: | ||
role_name: ca-certificates | ||
author: | ||
description: | ||
company: | ||
license: MIT | ||
min_ansible_version: 2 | ||
platforms: | ||
- name: Archlinux | ||
versions: | ||
- all | ||
- name: EL | ||
versions: | ||
- 5 | ||
- 6 | ||
- name: Fedora | ||
versions: | ||
- 16 | ||
- 17 | ||
- 18 | ||
- name: Ubuntu | ||
versions: | ||
- precise | ||
- quantal | ||
- raring | ||
- saucy | ||
- name: Debian | ||
versions: | ||
- wheezy | ||
|
||
galaxy_tags: [] | ||
|
||
dependencies: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
# tasks file for arillso.ca-certificates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
# tasks file for arillso.ca-certificates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
# tasks file for arillso.ca-certificates | ||
|
||
- name: Message | ||
debug: | ||
msg: "Your {{ ansible_system }} is not supported" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
# tasks file for arillso.ca-certificates | ||
|
||
- name: add OS specific variables | ||
include_vars: "{{ loop_vars }}" | ||
with_first_found: | ||
- files: | ||
- "{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml" | ||
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml" | ||
- "{{ ansible_distribution }}.yml" | ||
- "{{ ansible_os_family }}.yml" | ||
- "{{ ansible_system }}.yml" | ||
- "defaults.yml" | ||
paths: | ||
- "vars" | ||
loop_control: | ||
loop_var: loop_vars | ||
tags: | ||
- configuration | ||
- packages | ||
|
||
- name: include distribution tasks | ||
include_tasks: "{{ loop_distribution }}" | ||
with_first_found: | ||
- files: | ||
- "{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml" | ||
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml" | ||
- "{{ ansible_distribution }}.yml" | ||
- "{{ ansible_os_family }}.yml" | ||
- "{{ ansible_system }}.yml" | ||
- "defaults.yml" | ||
paths: | ||
- "distribution" | ||
loop_control: | ||
loop_var: loop_distribution | ||
tags: | ||
- configuration | ||
- packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
# vars file for arillso.ca-certificates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
# vars file for arillso.ca-certificates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
# vars file for arillso.ca-certificates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
# vars file for arillso.ca-certificates |