From c3ff1ffed789bcee4115230f0625ce2c635a6109 Mon Sep 17 00:00:00 2001 From: Simon Baerlocher Date: Wed, 5 Jun 2019 18:19:54 +0200 Subject: [PATCH] initial commit --- .gitlab-ci.yml | 21 +++++++++++++++ .travis.yml | 48 +++++++++++++++++++++++++++++++++ README.md | 44 ++++++++++++++++++++++++++++++ defaults/main.yml | 2 ++ handlers/main.yml | 2 ++ meta/main.yml | 35 ++++++++++++++++++++++++ tasks/distribution/Linux.yml | 2 ++ tasks/distribution/Windows.yml | 2 ++ tasks/distribution/defaults.yml | 6 +++++ tasks/main.yml | 38 ++++++++++++++++++++++++++ vars/CentOS.yml | 2 ++ vars/Debian.yml | 2 ++ vars/Ubuntu.yml | 2 ++ vars/defaults.yml | 2 ++ 14 files changed, 208 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 .travis.yml create mode 100644 README.md create mode 100644 defaults/main.yml create mode 100644 handlers/main.yml create mode 100644 meta/main.yml create mode 100644 tasks/distribution/Linux.yml create mode 100644 tasks/distribution/Windows.yml create mode 100644 tasks/distribution/defaults.yml create mode 100644 tasks/main.yml create mode 100644 vars/CentOS.yml create mode 100644 vars/Debian.yml create mode 100644 vars/Ubuntu.yml create mode 100644 vars/defaults.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..9c3948d --- /dev/null +++ b/.gitlab-ci.yml @@ -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 diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ee0e314 --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/README.md b/README.md new file mode 100644 index 0000000..e2ac40e --- /dev/null +++ b/README.md @@ -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 diff --git a/defaults/main.yml b/defaults/main.yml new file mode 100644 index 0000000..8d77ec4 --- /dev/null +++ b/defaults/main.yml @@ -0,0 +1,2 @@ +--- +# defaults file for arillso.ca-certificates diff --git a/handlers/main.yml b/handlers/main.yml new file mode 100644 index 0000000..fc693d4 --- /dev/null +++ b/handlers/main.yml @@ -0,0 +1,2 @@ +--- +# handlers file for arillso.ca-certificates diff --git a/meta/main.yml b/meta/main.yml new file mode 100644 index 0000000..6b0db57 --- /dev/null +++ b/meta/main.yml @@ -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: [] diff --git a/tasks/distribution/Linux.yml b/tasks/distribution/Linux.yml new file mode 100644 index 0000000..519c3e3 --- /dev/null +++ b/tasks/distribution/Linux.yml @@ -0,0 +1,2 @@ +--- +# tasks file for arillso.ca-certificates diff --git a/tasks/distribution/Windows.yml b/tasks/distribution/Windows.yml new file mode 100644 index 0000000..519c3e3 --- /dev/null +++ b/tasks/distribution/Windows.yml @@ -0,0 +1,2 @@ +--- +# tasks file for arillso.ca-certificates diff --git a/tasks/distribution/defaults.yml b/tasks/distribution/defaults.yml new file mode 100644 index 0000000..5fcc4ea --- /dev/null +++ b/tasks/distribution/defaults.yml @@ -0,0 +1,6 @@ +--- +# tasks file for arillso.ca-certificates + +- name: Message + debug: + msg: "Your {{ ansible_system }} is not supported" diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..41a057e --- /dev/null +++ b/tasks/main.yml @@ -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 diff --git a/vars/CentOS.yml b/vars/CentOS.yml new file mode 100644 index 0000000..0d5e0f3 --- /dev/null +++ b/vars/CentOS.yml @@ -0,0 +1,2 @@ +--- +# vars file for arillso.ca-certificates diff --git a/vars/Debian.yml b/vars/Debian.yml new file mode 100644 index 0000000..0d5e0f3 --- /dev/null +++ b/vars/Debian.yml @@ -0,0 +1,2 @@ +--- +# vars file for arillso.ca-certificates diff --git a/vars/Ubuntu.yml b/vars/Ubuntu.yml new file mode 100644 index 0000000..0d5e0f3 --- /dev/null +++ b/vars/Ubuntu.yml @@ -0,0 +1,2 @@ +--- +# vars file for arillso.ca-certificates diff --git a/vars/defaults.yml b/vars/defaults.yml new file mode 100644 index 0000000..0d5e0f3 --- /dev/null +++ b/vars/defaults.yml @@ -0,0 +1,2 @@ +--- +# vars file for arillso.ca-certificates