Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaerlocher committed Jun 5, 2019
0 parents commit c3ff1ff
Show file tree
Hide file tree
Showing 14 changed files with 208 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .gitlab-ci.yml
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
48 changes: 48 additions & 0 deletions .travis.yml
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
44 changes: 44 additions & 0 deletions README.md
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
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
# defaults file for arillso.ca-certificates
2 changes: 2 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
# handlers file for arillso.ca-certificates
35 changes: 35 additions & 0 deletions meta/main.yml
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: []
2 changes: 2 additions & 0 deletions tasks/distribution/Linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
# tasks file for arillso.ca-certificates
2 changes: 2 additions & 0 deletions tasks/distribution/Windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
# tasks file for arillso.ca-certificates
6 changes: 6 additions & 0 deletions tasks/distribution/defaults.yml
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"
38 changes: 38 additions & 0 deletions tasks/main.yml
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
2 changes: 2 additions & 0 deletions vars/CentOS.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
# vars file for arillso.ca-certificates
2 changes: 2 additions & 0 deletions vars/Debian.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
# vars file for arillso.ca-certificates
2 changes: 2 additions & 0 deletions vars/Ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
# vars file for arillso.ca-certificates
2 changes: 2 additions & 0 deletions vars/defaults.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
# vars file for arillso.ca-certificates

0 comments on commit c3ff1ff

Please sign in to comment.