Skip to content

Commit e2e4417

Browse files
committed
Fixing GH actions.
1 parent 9d4ee11 commit e2e4417

File tree

4 files changed

+22
-8
lines changed

4 files changed

+22
-8
lines changed

.ansible-lint

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ mock_roles:
2727
skip_list:
2828
# Variables names from within roles should use role_name_ as a prefix
2929
- var-naming[no-role-prefix]
30+
- key-order[play]
31+
- fqcn[action-core]
32+
- var-naming[no-reserved]

.github/workflows/ansible-lint.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
name: Ansible Lint
2+
23
on:
34
pull_request:
45
paths:
5-
- playbooks/**.yaml
6+
- playbooks/**.yaml
67
jobs:
78
build:
89
runs-on: ubuntu-latest
10+
911
steps:
10-
- name: checks-out the repository under $GITHUB_WORKSPACE
11-
uses: actions/checkout@v3
12-
- name: run ansible-lint
13-
uses: ansible/ansible-lint-action@main
14-
with:
15-
path: playbooks/
12+
13+
- name: checks-out the repository under $GITHUB_WORKSPACE
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Install ansible-lint
19+
run: python3 -m pip install ansible-dev-tools --user
20+
21+
- name: Install dependency
22+
run: ansible-galaxy collection install ansible.posix
23+
24+
- name: Run lint
25+
run: ansible-lint playbooks/**

playbooks/install_stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@
535535
- sriov_interface is defined or dpdk_interface is defined or kernel_args is defined
536536
block:
537537
- name: Reboot the node
538-
become_user: root
538+
become: true
539539
ansible.builtin.reboot:
540540
- name: Pause for 2 minutes to let all containers to start and OpenStack to be ready
541541
ansible.builtin.pause:

playbooks/prepare_stack.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
23
- hosts: standalone
34
become: true
45
become_user: stack

0 commit comments

Comments
 (0)