-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
Co-authored-by: willtome <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
--- | ||
profile: production | ||
offline: false | ||
|
||
skip_list: | ||
- "galaxy[no-changelog]" | ||
|
||
exclude_paths: | ||
# would be better to move the roles here to the top-level roles directory | ||
- collections/ansible_collections/demo/compliance/roles/ | ||
- roles/redhatofficial.* | ||
- .github/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- repo: https://github.com/ansible/ansible-lint.git | ||
# get latest release tag from https://github.com/ansible/ansible-lint/releases/ | ||
rev: v6.18.0 | ||
hooks: | ||
- id: ansible-lint | ||
additional_dependencies: | ||
- jmespath | ||
|
||
... |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
extends: default | ||
|
||
rules: | ||
line-length: disable | ||
trailing-spaces: enable | ||
colons: | ||
max-spaces-before: 0 | ||
max-spaces-after: -1 | ||
indentation: | ||
level: error | ||
indent-sequences: true # consistent with ansible-lint | ||
truthy: | ||
level: error | ||
allowed-values: | ||
- 'true' | ||
- 'false' | ||
|
||
... |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
# Set stat_snapshots with model: | ||
# [ | ||
# { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
- name: Create web directory if it does not exist | ||
ansible.builtin.file: | ||
path: "{{ file_path }}" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
- name: Create HTML report | ||
ansible.builtin.template: | ||
src: report.j2 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
--- | ||
file_path: /var/www/html | ||
Check failure on line 2 in collections/ansible_collections/demo/patching/roles/build_report_windows/vars/main.yml GitHub Actions / Ansible Lintvar-naming[no-role-prefix]
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
email_from: [email protected] | ||
Check failure on line 2 in collections/ansible_collections/demo/patching/roles/build_report_windows_patch/defaults/main.yml GitHub Actions / Ansible Lintvar-naming[no-role-prefix]
|
||
to_emails: [email protected],[email protected] | ||
Check failure on line 3 in collections/ansible_collections/demo/patching/roles/build_report_windows_patch/defaults/main.yml GitHub Actions / Ansible Lintvar-naming[no-role-prefix]
|
||
to_emails_list: "{{ to_emails.split(',') }}" | ||
Check failure on line 4 in collections/ansible_collections/demo/patching/roles/build_report_windows_patch/defaults/main.yml GitHub Actions / Ansible Lintvar-naming[no-role-prefix]
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
- name: Create HTML report | ||
ansible.builtin.template: | ||
src: report.j2 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
--- | ||
file_path: /var/www/html | ||
Check failure on line 2 in collections/ansible_collections/demo/patching/roles/build_report_windows_patch/vars/main.yml GitHub Actions / Ansible Lintvar-naming[no-role-prefix]
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
- name: Create HTML report | ||
ansible.builtin.template: | ||
src: report.j2 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
--- | ||
file_path: /var/www/html/reports |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
email_from: [email protected] | ||
to_emails: [email protected],[email protected] | ||
to_emails_list: "{{ to_emails.split(',') }}" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
- name: Create HTML report | ||
ansible.builtin.template: | ||
src: report.j2 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
--- | ||
file_path: /var/www/html/reports |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
- name: Create HTML report | ||
ansible.windows.win_template: | ||
src: report.j2 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
instance_name: "{{ inventory_hostname | regex_replace('_', '-') }}" | ||
activation_key: "{{ 'RHEL' + ansible_distribution_major_version + '_' + env }}" | ||
rex_user: root # "{{ ansible_user }}" | ||
rex_user: root # "{{ ansible_user }}" | ||
force_register: true |