-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #231 from StackStorm/fix/ansible-lint
Fix ansible-lint CI failures
- Loading branch information
Showing
12 changed files
with
61 additions
and
66 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ jobs: | |
|
||
workflows: | ||
version: 2 | ||
helm: | ||
lint: | ||
jobs: | ||
- ansible-lint | ||
- yaml-lint | ||
|
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
--- | ||
|
||
- name: Install prereqs (Debian) | ||
become: yes | ||
apt: | ||
|
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
--- | ||
|
||
- name: Cleanup repo list file from disk | ||
become: yes | ||
file: | ||
|
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
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
--- | ||
|
||
- name: Check if EWC license hash file is present | ||
stat: | ||
path: /etc/packagecloud/ewc_license_hash.txt | ||
|
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 |
---|---|---|
@@ -1,59 +1,59 @@ | ||
--- | ||
- name: Copy default RBAC roles to /opt/stackstorm/rbac/roles directory | ||
become: yes | ||
template: | ||
src: rbac_roles/roles.yml.j2 | ||
dest: /opt/stackstorm/rbac/roles/{{ item.name }}.yaml | ||
owner: st2 | ||
group: st2 | ||
loop: "{{ ewc_rbac_default_roles }}" | ||
notify: | ||
- reload ewc_rbac | ||
- name: Copy default RBAC roles to /opt/stackstorm/rbac/roles directory | ||
become: yes | ||
template: | ||
src: rbac_roles/roles.yml.j2 | ||
dest: /opt/stackstorm/rbac/roles/{{ item.name }}.yaml | ||
owner: st2 | ||
group: st2 | ||
loop: "{{ ewc_rbac_default_roles }}" | ||
notify: | ||
- reload ewc_rbac | ||
|
||
- name: Copy user defined RBAC roles to /opt/stackstorm/rbac/roles directory | ||
become: yes | ||
template: | ||
src: rbac_roles/roles.yml.j2 | ||
dest: /opt/stackstorm/rbac/roles/{{ item.name }}.yaml | ||
owner: st2 | ||
group: st2 | ||
loop: "{{ ewc_rbac.roles }}" | ||
when: ewc_rbac.roles is defined | ||
notify: | ||
- reload ewc_rbac | ||
- name: Copy user defined RBAC roles to /opt/stackstorm/rbac/roles directory | ||
become: yes | ||
template: | ||
src: rbac_roles/roles.yml.j2 | ||
dest: /opt/stackstorm/rbac/roles/{{ item.name }}.yaml | ||
owner: st2 | ||
group: st2 | ||
loop: "{{ ewc_rbac.roles }}" | ||
when: ewc_rbac.roles is defined | ||
notify: | ||
- reload ewc_rbac | ||
|
||
- name: Copy default RBAC assignments to /opt/stackstorm/rbac/assignments directory | ||
become: yes | ||
template: | ||
src: rbac_assignments/assignments.yml.j2 | ||
dest: /opt/stackstorm/rbac/assignments/{{ item.name }}.yaml | ||
owner: st2 | ||
group: st2 | ||
loop: "{{ ewc_rbac_default_assignments }}" | ||
notify: | ||
- reload ewc_rbac | ||
- name: Copy default RBAC assignments to /opt/stackstorm/rbac/assignments directory | ||
become: yes | ||
template: | ||
src: rbac_assignments/assignments.yml.j2 | ||
dest: /opt/stackstorm/rbac/assignments/{{ item.name }}.yaml | ||
owner: st2 | ||
group: st2 | ||
loop: "{{ ewc_rbac_default_assignments }}" | ||
notify: | ||
- reload ewc_rbac | ||
|
||
- name: Copy user defined RBAC assignments to /opt/stackstorm/rbac/assignments directory | ||
become: yes | ||
template: | ||
src: rbac_assignments/assignments.yml.j2 | ||
dest: /opt/stackstorm/rbac/assignments/{{ item.name }}.yaml | ||
owner: st2 | ||
group: st2 | ||
loop: "{{ ewc_rbac.assignments }}" | ||
when: ewc_rbac.assignments is defined | ||
notify: | ||
- reload ewc_rbac | ||
- name: Copy user defined RBAC assignments to /opt/stackstorm/rbac/assignments directory | ||
become: yes | ||
template: | ||
src: rbac_assignments/assignments.yml.j2 | ||
dest: /opt/stackstorm/rbac/assignments/{{ item.name }}.yaml | ||
owner: st2 | ||
group: st2 | ||
loop: "{{ ewc_rbac.assignments }}" | ||
when: ewc_rbac.assignments is defined | ||
notify: | ||
- reload ewc_rbac | ||
|
||
- name: Enable RBAC in st2 configuration | ||
become: yes | ||
ini_file: | ||
dest: /etc/st2/st2.conf | ||
section: rbac | ||
option: enable | ||
value: True | ||
backup: yes | ||
notify: | ||
- restart st2 | ||
- reload ewc_rbac | ||
- restart st2api | ||
- name: Enable RBAC in st2 configuration | ||
become: yes | ||
ini_file: | ||
dest: /etc/st2/st2.conf | ||
section: rbac | ||
option: enable | ||
value: True | ||
backup: yes | ||
notify: | ||
- restart st2 | ||
- reload ewc_rbac | ||
- restart st2api |
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
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