-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5119716
commit a46fe5c
Showing
11 changed files
with
158 additions
and
26 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
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,33 @@ | ||
--- | ||
# Based on ansible-lint config | ||
extends: default | ||
|
||
rules: | ||
braces: | ||
max-spaces-inside: 1 | ||
level: error | ||
brackets: | ||
max-spaces-inside: 1 | ||
level: error | ||
colons: | ||
max-spaces-after: -1 | ||
level: error | ||
commas: | ||
max-spaces-after: -1 | ||
level: error | ||
comments: disable | ||
comments-indentation: disable | ||
document-start: disable | ||
empty-lines: | ||
max: 3 | ||
level: error | ||
hyphens: | ||
level: error | ||
indentation: disable | ||
key-duplicates: enable | ||
line-length: disable | ||
new-line-at-end-of-file: disable | ||
new-lines: | ||
type: unix | ||
trailing-spaces: disable | ||
truthy: disable |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
- name: Converge | ||
hosts: all | ||
|
||
environment: | ||
http_proxy: "{{ lookup('ansible.builtin.env', 'http_proxy') | default(omit) }}" | ||
https_proxy: "{{ lookup('ansible.builtin.env', 'https_proxy') | default(omit) }}" | ||
|
||
tasks: | ||
- name: "Include tests" | ||
ansible.builtin.include_role: | ||
name: "tests" |
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,20 @@ | ||
--- | ||
dependency: | ||
name: galaxy | ||
driver: | ||
name: molecule-qemu | ||
platforms: | ||
- name: debian-bullseye-arm64 | ||
image: https://cloud.debian.org/images/cloud/bullseye/latest/debian-11-genericcloud-arm64.qcow2 | ||
image_checksum: sha512:https://cloud.debian.org/images/cloud/bullseye/latest/SHA512SUMS | ||
image_arch: aarch64 | ||
ssh_port: 10000 | ||
- name: debian-bullseye-amd64 | ||
image: https://cloud.debian.org/images/cloud/bullseye/latest/debian-11-genericcloud-amd64.qcow2 | ||
image_checksum: sha512:https://cloud.debian.org/images/cloud/bullseye/latest/SHA512SUMS | ||
image_arch: x86_64 | ||
ssh_port: 10001 | ||
provisioner: | ||
name: ansible | ||
verifier: | ||
name: ansible |
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,15 @@ | ||
--- | ||
- name: Prepare | ||
hosts: all | ||
become: true | ||
gather_facts: false | ||
|
||
environment: | ||
http_proxy: "{{ lookup('ansible.builtin.env', 'http_proxy') | default(omit) }}" | ||
https_proxy: "{{ lookup('ansible.builtin.env', 'https_proxy') | default(omit) }}" | ||
|
||
tasks: | ||
- name: Wait for SSH to become available | ||
ansible.builtin.wait_for_connection: | ||
delay: 5 | ||
timeout: 300 |
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,10 @@ | ||
--- | ||
# This is an example playbook to execute Ansible tests. | ||
|
||
- name: Verify | ||
hosts: all | ||
gather_facts: false | ||
tasks: | ||
- name: Example assertion | ||
ansible.builtin.assert: | ||
that: true |
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,12 @@ | ||
--- | ||
- name: Converge | ||
hosts: all | ||
|
||
environment: | ||
http_proxy: "{{ lookup('ansible.builtin.env', 'http_proxy') | default(omit) }}" | ||
https_proxy: "{{ lookup('ansible.builtin.env', 'https_proxy') | default(omit) }}" | ||
|
||
tasks: | ||
- name: "Include tests" | ||
ansible.builtin.include_role: | ||
name: "tests" |
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,20 @@ | ||
--- | ||
dependency: | ||
name: galaxy | ||
driver: | ||
name: molecule-qemu | ||
platforms: | ||
- name: debian-bullseye-arm64 | ||
image: https://cloud.debian.org/images/cloud/bullseye/latest/debian-11-genericcloud-arm64.qcow2 | ||
image_checksum: sha512:https://cloud.debian.org/images/cloud/bullseye/latest/SHA512SUMS | ||
image_arch: aarch64 | ||
vm_network: vmnet-shared | ||
- name: debian-bullseye-amd64 | ||
image: https://cloud.debian.org/images/cloud/bullseye/latest/debian-11-genericcloud-amd64.qcow2 | ||
image_checksum: sha512:https://cloud.debian.org/images/cloud/bullseye/latest/SHA512SUMS | ||
image_arch: x86_64 | ||
vm_network: vmnet-shared | ||
provisioner: | ||
name: ansible | ||
verifier: | ||
name: ansible |
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,15 @@ | ||
--- | ||
- name: Prepare | ||
hosts: all | ||
become: true | ||
gather_facts: false | ||
|
||
environment: | ||
http_proxy: "{{ lookup('ansible.builtin.env', 'http_proxy') | default(omit) }}" | ||
https_proxy: "{{ lookup('ansible.builtin.env', 'https_proxy') | default(omit) }}" | ||
|
||
tasks: | ||
- name: Wait for SSH to become available | ||
ansible.builtin.wait_for_connection: | ||
delay: 5 | ||
timeout: 300 |
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,10 @@ | ||
--- | ||
# This is an example playbook to execute Ansible tests. | ||
|
||
- name: Verify | ||
hosts: all | ||
gather_facts: false | ||
tasks: | ||
- name: Example assertion | ||
ansible.builtin.assert: | ||
that: true |