Browse Source

Add pre-commit

tags/0.0.2^2
Julien Cabillot 1 year ago
parent
commit
395a6a8ab0
No known key found for this signature in database GPG Key ID: EF8F0EB0565E282F
8 changed files with 16 additions and 8 deletions
  1. +0
    -1
      .gitignore
  2. +10
    -0
      .pre-commit-config.yaml
  3. +2
    -2
      README.md
  4. +0
    -1
      kitchen.yml
  5. +1
    -1
      tasks/setup-Amazon.yml
  6. +1
    -1
      tasks/setup-Debian.yml
  7. +1
    -1
      tasks/setup-RedHat.yml
  8. +1
    -1
      vars/main.yml

+ 0
- 1
.gitignore View File

@@ -1,3 +1,2 @@
# ---> Ansible
*.retry


+ 10
- 0
.pre-commit-config.yaml View File

@@ -0,0 +1,10 @@
repos:
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: check-merge-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: detect-private-key
- id: check-yaml

+ 2
- 2
README.md View File

@@ -1,8 +1,8 @@
ansible-role-docker
===================

Install docker for CentOS / RHEL / Amazon Linux 2.
Based on : https://github.com/geerlingguy/ansible-role-docker/
Install docker for CentOS / RHEL / Amazon Linux 2.
Based on : https://github.com/geerlingguy/ansible-role-docker/
The geerlingguy role doesn't support RHEL and Amazon.

Requirements


+ 0
- 1
kitchen.yml View File

@@ -101,4 +101,3 @@ suites:
inspec_tests:
- name: local
path: test/integration/default/amazon.rb


+ 1
- 1
tasks/setup-Amazon.yml View File

@@ -3,4 +3,4 @@
package:
name: "docker"
state: "present"
notify: "restart docker"
notify: "restart docker"

+ 1
- 1
tasks/setup-Debian.yml View File

@@ -31,4 +31,4 @@
package:
name: "{{ docker_package }}"
state: "{{ docker_package_state }}"
notify: restart docker
notify: restart docker

+ 1
- 1
tasks/setup-RedHat.yml View File

@@ -57,4 +57,4 @@
state: "{{ docker_package_state }}"
enablerepo: "{{ redhat_extrarepo.stdout }}"
notify: restart docker
when: ansible_distribution == "RedHat"
when: ansible_distribution == "RedHat"

+ 1
- 1
vars/main.yml View File

@@ -1,2 +1,2 @@
---
# vars file for ansible-role-docker
# vars file for ansible-role-docker

Loading…
Cancel
Save