Skip to content
Closed
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: 3 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ mock_roles:
skip_list:
# Variables names from within roles should use role_name_ as a prefix
- var-naming[no-role-prefix]
- key-order[play]
- fqcn[action-core]
- var-naming[no-reserved]
24 changes: 17 additions & 7 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
name: Ansible Lint

on:
pull_request:
paths:
- playbooks/**.yaml
- playbooks/**.yaml
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: checks-out the repository under $GITHUB_WORKSPACE
uses: actions/checkout@v3
- name: run ansible-lint
uses: ansible/ansible-lint-action@main
with:
path: playbooks/

- name: checks-out the repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install ansible-lint
run: python3 -m pip install ansible-dev-tools --user

- name: Install dependency
run: ansible-galaxy collection install ansible.posix community.general tripleo.operator containers.podman community.crypto

- name: Run lint
run: ansible-lint playbooks/**
2 changes: 1 addition & 1 deletion playbooks/install_stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@
- sriov_interface is defined or dpdk_interface is defined or kernel_args is defined
block:
- name: Reboot the node
become_user: root
become: true
ansible.builtin.reboot:
- name: Pause for 2 minutes to let all containers to start and OpenStack to be ready
ansible.builtin.pause:
Expand Down
1 change: 1 addition & 0 deletions playbooks/prepare_stack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---

- hosts: standalone
become: true
become_user: stack
Expand Down
Loading