generated from linux-system-roles/template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Radovan Sroka <[email protected]>
- Loading branch information
Showing
27 changed files
with
164 additions
and
95 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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# SPDX-License-Identifier: MIT | ||
--- | ||
- name: Example aide role invocation | ||
hosts: targets | ||
tasks: | ||
- name: Include role aide | ||
vars: | ||
aide_db_fetch_dir: files | ||
aide_install: true | ||
aide_generate_config: true | ||
aide_init: true | ||
aide_check: false | ||
aide_update: false | ||
ansible.builtin.include_role: | ||
name: linux-system-roles.aide |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# SPDX-License-Identifier: MIT | ||
--- | ||
- name: Example aide role invocation | ||
hosts: targets | ||
tasks: | ||
- name: Include role aide | ||
vars: | ||
aide_db_fetch_dir: files | ||
aide_install: false | ||
aide_generate_config: false | ||
aide_init: false | ||
aide_check: true | ||
aide_update: false | ||
ansible.builtin.include_role: | ||
name: linux-system-roles.aide |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# SPDX-License-Identifier: MIT | ||
--- | ||
- name: Example aide role invocation | ||
hosts: targets | ||
tasks: | ||
- name: Include role aide | ||
vars: | ||
aide_db_fetch_dir: files | ||
aide_install: false | ||
aide_generate_config: false | ||
aide_init: false | ||
aide_check: false | ||
aide_update: true | ||
ansible.builtin.include_role: | ||
name: linux-system-roles.aide |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# SPDX-License-Identifier: MIT | ||
--- | ||
- name: Get file | ||
slurp: | ||
path: "{{ __file }}" | ||
register: __content | ||
when: not __file_content is defined | ||
|
||
- name: Check for presence of ansible managed header, fingerprint | ||
assert: | ||
that: | ||
- ansible_managed not in content | ||
- __fingerprint not in content | ||
vars: | ||
content: "{{ (__file_content | d(__content)).content | b64decode }}" | ||
ansible_managed: "{{ lookup('template', 'get_ansible_managed.j2') }}" |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# SPDX-License-Identifier: MIT | ||
--- | ||
- name: Ensure that the role runs with default parameters | ||
hosts: all | ||
gather_facts: false # test that role works in this case | ||
roles: | ||
- role: linux-system-roles.aide | ||
vars: | ||
aide_install: true | ||
aide_generate_config: true | ||
aide_init: true | ||
tasks: | ||
- name: Check header for ansible_managed, fingerprint | ||
include_tasks: tasks/check_header.yml | ||
vars: | ||
__file: /etc/aide.conf | ||
__fingerprint: system_role:aide |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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