-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
basic Readme basic Baseline, new var, github actions
- Loading branch information
1 parent
e980bd9
commit 2d28b2f
Showing
18 changed files
with
256 additions
and
97 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,55 @@ | ||
name: Ansible Lint # feel free to pick your own name | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Important: This sets up your GITHUB_WORKSPACE environment variable | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Lint Ansible Playbook | ||
# replace "master" with any valid ref | ||
uses: ansible/ansible-lint-action@master | ||
with: | ||
# [required] | ||
# Paths to ansible files (i.e., playbooks, tasks, handlers etc..) | ||
# or valid Ansible directories according to the Ansible role | ||
# directory structure. | ||
# If you want to lint multiple ansible files, use the following syntax | ||
# targets: | | ||
# playbook_1.yml | ||
# playbook_2.yml | ||
targets: playbook.yml | ||
# [optional] | ||
# Arguments to override a package and its version to be set explicitly. | ||
# Must follow the example syntax. | ||
override-deps: | | ||
ansible==2.9 | ||
ansible-lint==4.2.0 | ||
# [optional] | ||
# Arguments to be passed to the ansible-lint | ||
|
||
# Options: | ||
# -q quieter, although not silent output | ||
# -p parseable output in the format of pep8 | ||
# --parseable-severity parseable output including severity of rule | ||
# -r RULESDIR specify one or more rules directories using one or | ||
# more -r arguments. Any -r flags override the default | ||
# rules in ansiblelint/rules, unless -R is also used. | ||
# -R Use default rules in ansiblelint/rules in addition to | ||
# any extra | ||
# rules directories specified with -r. There is no need | ||
# to specify this if no -r flags are used | ||
# -t TAGS only check rules whose id/tags match these values | ||
# -x SKIP_LIST only check rules whose id/tags do not match these | ||
# values | ||
# --nocolor disable colored output | ||
# --exclude=EXCLUDE_PATHS | ||
# path to directories or files to skip. This option is | ||
# repeatable. | ||
# -c C Specify configuration file to use. Defaults to ".ansible-lint" | ||
args: "" |
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,17 @@ | ||
name: Lint CloudFormation Templates | ||
|
||
on: [push] | ||
|
||
jobs: | ||
cloudformation-linter: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: cfn-lint | ||
uses: scottbrenner/cfn-lint-action@master | ||
with: | ||
args: "templates/**/*.yml" |
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,8 @@ | ||
CLOUDFORMATION_DIR = templates/cloudformation/ | ||
|
||
lint: | ||
~/.local/bin/ansible-lint -x 204 -x 403 playbook.yml | ||
$(foreach file, $(wildcard $(CLOUDFORMATION_DIR)/*), ~/.local/bin/cfn-lint $(file);) | ||
|
||
format: | ||
echo "test" |
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
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 |
---|---|---|
@@ -1,24 +1,12 @@ | ||
--- | ||
enable_packages: | ||
- name: python | ||
|
||
users: ubuntu | ||
|
||
enable_packages: | ||
- name: python3 | ||
|
||
# Versions | ||
kubernetes_version: v1.18.0 | ||
# docker_version: | ||
docker_composer_version: 1.25.5 | ||
# enable_kubernetes: | ||
# kubernetes_version: v1.18.0 | ||
|
||
# locale: en_US.UTF-8 | ||
# timezone: Asia/Tokyo | ||
# language: en_US:en | ||
# linuxbrew_packages: | ||
# - name: ncurses | ||
# - name: readline | ||
# - name: git | ||
# - name: zsh | ||
# - name: vim | ||
# install_options: with-lua,with-luajit | ||
# - name: z | ||
# - name: rbenv | ||
# - name: peco | ||
# enable_docker: | ||
# docker_compose | ||
# docker_composer_version: 1.25.5 |
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,18 +1,29 @@ | ||
--- | ||
# tasks file for baseline | ||
- import_tasks: amznlinux.yml | ||
when: ansible_os_family|lower == 'redhat' | ||
|
||
- import_tasks: users_directories.yml | ||
|
||
# - import_tasks: bash_it.yml | ||
# vars: | ||
# user: ec2-user | ||
# aliases: | ||
# - general | ||
# - ansible | ||
# plugins: | ||
# - history | ||
# completions: | ||
# - git | ||
|
||
- name: baseline packages for Dawin | ||
import_tasks: packages/darwin.yml | ||
when: ansible_os_family != "Darwin" | ||
|
||
- name: baseline packages for Debian | ||
import_tasks: packages/debian.yml | ||
when: ansible_os_family == "Debian" | ||
|
||
- name: baseline packages for RedHat | ||
import_tasks: packages/redhat.yml | ||
when: ansible_os_family == "RedHat" | ||
|
||
- import_tasks: shell/bash_it.yml | ||
when: bash_it.enable | ||
vars: | ||
aliases: | ||
- general | ||
- ansible | ||
plugins: | ||
- history | ||
completions: | ||
- git | ||
- import_tasks: shell/zsh.yaml | ||
when: zsh.enable | ||
# - import_tasks: shell/oh_my_zsh.yml |
File renamed without changes.
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,41 @@ | ||
# tasks file for baseline | ||
- name: install git | ||
apt: | ||
name: git | ||
state: latest | ||
become: yes | ||
- name: install jq | ||
apt: | ||
name: jq | ||
state: latest | ||
become: yes | ||
- name: install zsh | ||
when: zsh.enable is defined | ||
apt: | ||
name: zsh | ||
state: latest | ||
become: yes | ||
- name: install tmux | ||
when: tmux.enable is defined | ||
apt: | ||
name: tmux | ||
state: latest | ||
become: yes | ||
- name: install htop | ||
when: htop.enable is defined | ||
apt: | ||
name: htop | ||
state: latest | ||
become: yes | ||
- name: install screen | ||
when: screen.enable | ||
apt: | ||
name: screen | ||
state: latest | ||
become: yes | ||
- name: install vim | ||
when: vim.enable | ||
apt: | ||
name: vim | ||
state: latest | ||
become: yes |
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
Oops, something went wrong.