File tree Expand file tree Collapse file tree 3 files changed +24
-8
lines changed
Expand file tree Collapse file tree 3 files changed +24
-8
lines changed Original file line number Diff line number Diff line change 11name : Ansible Lint
2+
23on :
34 pull_request :
45 paths :
5- - playbooks/**.yaml
6+ - playbooks/**.yaml
67jobs :
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 : Set up Python
19+ uses : actions/setup-python@v5
20+ with :
21+ python-version : " 3.x"
22+
23+ - name : Install ansible-lint
24+ run : python3 -m pip install ansible-dev-tools --user
25+
26+ - name : Install dependency
27+ run : ansible-galaxy collection install ansible.posix
28+
29+ - name : Run lint
30+ run : ansible-lint -c .ansible-lint playbooks/**
Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 11---
2+
23- hosts : standalone
34 become : true
45 become_user : stack
You can’t perform that action at this time.
0 commit comments