Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/ansible-integration-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ jobs:
- name: Ansible Lint
uses: ansible-community/ansible-lint-action@v6

- name: YAMLLint
uses: ibiqlik/action-yamllint@v3

test:
name: Molecule
runs-on: ubuntu-22.04
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Integration

on:
push:
branches:
- main
pull_request:

jobs:
integration:
name: Integration
uses: ./.github/workflows/ansible-integration-workflow.yaml
with:
distros: '[ "debian11", "debian10", "ubuntu2204", "ubuntu2004" ]'
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Github Workflows for Ansible Roles

[![Integration](https://github.com/systemli/github-ansible-workflow/actions/workflows/integration.yml/badge.svg)](https://github.com/systemli/github-ansible-workflow/actions/workflows/integration.yml)

## Continuous Integration (Molecule)

### Configuration
Expand Down
16 changes: 16 additions & 0 deletions molecule/default/converge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
- name: Converge
hosts: all
become: true
tasks:
- name: Create directory
ansible.builtin.file:
path: "/etc/molecule"
state: "directory"
mode: "0755"

- name: Copy content to an example file
ansible.builtin.copy:
content: "This is a test"
dest: "/etc/molecule/test.txt"
mode: "0644"