Skip to content

Commit a085602

Browse files
committed
Add CI, update meta, etc.
1 parent e971eb2 commit a085602

14 files changed

+160
-336
lines changed

.ansible-lint

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
exclude_paths:
2+
- ./molecule/
3+
- ./drivers/
4+
skip_list:
5+
- '602'
6+
- '401'

.gitignore

-1
This file was deleted.

.travis.yml

-27
This file was deleted.

.yamllint

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
# Based on ansible-lint config
3+
extends: default
4+
ignore: |
5+
*molecule/*
6+
*drivers/*
7+
rules:
8+
braces:
9+
max-spaces-inside: 1
10+
level: error
11+
brackets:
12+
max-spaces-inside: 1
13+
level: error
14+
colons:
15+
max-spaces-after: -1
16+
level: error
17+
commas:
18+
max-spaces-after: -1
19+
level: error
20+
comments: disable
21+
comments-indentation: disable
22+
document-start: disable
23+
empty-lines:
24+
max: 3
25+
level: error
26+
hyphens:
27+
level: error
28+
indentation: disable
29+
key-duplicates: enable
30+
line-length: disable
31+
new-line-at-end-of-file: disable
32+
new-lines:
33+
type: unix
34+
trailing-spaces: disable
35+
truthy: disable

Jenkinsfile

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
/*
2+
* Standardized Jenkinsfile for Ansible Role
3+
*/
4+
5+
pipeline {
6+
agent {
7+
docker {
8+
image 'quay.io/ansible/molecule:3.0.4'
9+
args '--network host -u root:root -v $HOME/.cache:/root/.cache'
10+
}
11+
}
12+
13+
environment {
14+
VCENTER = credentials('infra-vcenter-zollo-vca01')
15+
ANSIBLE_HOST_KEY_CHECKING = "False"
16+
}
17+
18+
stages {
19+
20+
stage ('Configure Molecule Drivers') {
21+
steps {
22+
checkout(
23+
[
24+
$class: 'GitSCM',
25+
branches: [[name: '*/master']],
26+
doGenerateSubmoduleConfigurations: false,
27+
extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'ansible-ci-win']],
28+
submoduleCfg: [],
29+
userRemoteConfigs: [[credentialsId: 'github-ssh-joezollo',
30+
url: '[email protected]:joezollo/ansible-ci-windows.git']
31+
]
32+
]
33+
)
34+
35+
}
36+
}
37+
38+
stage ('Display Debug Info') {
39+
steps {
40+
sh '''
41+
ansible --version
42+
molecule --version
43+
'''
44+
}
45+
}
46+
47+
stage ('Install Prerequisites') {
48+
steps {
49+
sh "apk add --update --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ sshpass"
50+
sh "pip install -r requirements.txt"
51+
}
52+
}
53+
54+
stage ('Molecule Test') {
55+
steps {
56+
sh "rm -rf drivers/"
57+
sh "mv -fv ansible-ci-win/drivers/ ./"
58+
sh "rm -rf ansible-ci-win/"
59+
sh "molecule --debug test --all"
60+
}
61+
}
62+
}
63+
}

defaults/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
powershell_state: present
3-
powershell_version_major: 6
3+
powershell_version_major: 7
44
powershell_version: latest
55
powershell_modules: []
66

meta/main.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
---
22
galaxy_info:
33
role_name: powershell
4-
author: Joe Zollo
5-
description: PowerShell Role
4+
author: Joe Zollo <[email protected]>
5+
description: Manages PowerShell Installation
66
license: BSD
7-
min_ansible_version: 2.5
8-
7+
min_ansible_version: 2.8
98
platforms:
109
- name: EL
1110
versions:
@@ -21,7 +20,6 @@ galaxy_info:
2120
- 2012R2
2221
- 2016
2322
- 2019
24-
2523
galaxy_tags:
2624
- system
2725
- powershell

molecule/default/create.yml

-186
This file was deleted.

0 commit comments

Comments
 (0)