File tree Expand file tree Collapse file tree 11 files changed +34
-32
lines changed
Expand file tree Collapse file tree 11 files changed +34
-32
lines changed Original file line number Diff line number Diff line change 1+ /home/leucos/dev/sysadmin/ansible-roles/ansible-auditship
Original file line number Diff line number Diff line change 1- ---
21name : CI
32
4- on :
3+ ' on ' :
54 push :
65 branches : [main, master]
76 pull_request :
6261 run : |
6362 python3 -m pip install --upgrade pip
6463 python3 -m pip install ansible molecule molecule-plugins[podman]
65-
64+
6665 - name : Install Podman
6766 run : |
6867 sudo apt-get update
7271 run : molecule test
7372 env :
7473 PY_COLORS : ' 1'
75- ANSIBLE_FORCE_COLOR : ' 1'
74+ ANSIBLE_FORCE_COLOR : ' 1'
Original file line number Diff line number Diff line change 1- ---
21extends: default
32
43rules:
76 level: warning
87 comments:
98 min-spaces-from-content: 1
9+ comments-indentation: false
1010 document-start:
11- present: false
11+ present: false
12+ braces:
13+ max-spaces-inside: 1
14+ octal-values:
15+ forbid-implicit-octal: true
16+ forbid-explicit-octal: true
Original file line number Diff line number Diff line change 1- ---
21auditship_force_install : false
Original file line number Diff line number Diff line change 1- ---
2-
31dependencies : []
42
53galaxy_info :
64 author : DevopsWorks
7- company : DevopsWorks
5+ company : DevopsWorks
86 description : ansible-auditship role (https://gitlab.com/devopsworks/tools/auditship)
97 license : MIT
108 min_ansible_version : " 2.4"
119 role_name : auditship
1210 namespace : devopsworks
1311 platforms :
14- - name : Ubuntu
15- versions :
16- - all
17- - name : Debian
18- versions :
19- - all
12+ - name : Ubuntu
13+ versions :
14+ - all
15+ - name : Debian
16+ versions :
17+ - all
2018 galaxy_tags :
21- - system
19+ - system
Original file line number Diff line number Diff line change 1- ---
21- name : Converge
32 hosts : all
43 become : true
Original file line number Diff line number Diff line change 1- ---
21dependency :
32 name : galaxy
43
@@ -54,4 +53,4 @@ scenario:
5453 - side_effect
5554 - verify
5655 - cleanup
57- - destroy
56+ - destroy
Original file line number Diff line number Diff line change 1- ---
21- name : Prepare
32 hosts : all
43 become : true
Original file line number Diff line number Diff line change 1- ---
21- name : Verify
32 hosts : all
43 become : true
5049 ansible.builtin.command : /usr/local/bin/auditship -version
5150 register : version_output
5251 changed_when : false
53- failed_when : version_output.rc != 0
52+ failed_when : version_output.rc != 0
Original file line number Diff line number Diff line change 1- ---
21- name : Finds latest auditship version
32 ansible.builtin.uri :
43 url : https://gitlab.com/api/v4/projects/71363433/releases
54 status_code :
65 - 200
76 register : __auditship_repo_info
8- check_mode : no
7+ check_mode : false
98
10- - ansible.builtin.set_fact :
9+ - name : Set auditship version facts
10+ ansible.builtin.set_fact :
1111 __auditship_latest_version : ' {{ __auditship_repo_info.json.0["name"] }}'
1212 __auditship_latest_num_version : ' {{ __auditship_repo_info.json.0["name"] | regex_replace("v","") }}'
1313
1414- name : Fetches latest version
1515 ansible.builtin.get_url :
16- url : https://gitlab.com/api/v4/projects/71363433/packages/generic/auditship/{{ __auditship_latest_num_version }}/auditship-linux-amd64-{{ __auditship_latest_version }}.gz
16+ url : >
17+ https://gitlab.com/api/v4/projects/71363433/packages/generic/auditship/
18+ {{ __auditship_latest_num_version }}/auditship-linux-amd64-{{ __auditship_latest_version }}.gz
1719 dest : /tmp/auditship.gz
20+ mode : ' 0644'
1821
1922- name : Fetch & unarchive auditship
20- # can not use unachive , does not support gz
23+ # can not use unarchive , does not support gz
2124 ansible.builtin.shell : gunzip -cd /tmp/auditship.gz > /usr/local/bin/auditship && chmod 755 /usr/local/bin/auditship
25+ changed_when : true
2226
2327- name : Add auditd plugin config
2428 ansible.builtin.template :
2731 dest : /etc/audit/plugins.d/auditship.conf
2832 owner : root
2933 group : root
30- mode : 0640
34+ mode : ' 0640'
3135
3236- name : Add logrotate config
3337 ansible.builtin.get_url :
3438 url : https://gitlab.com/devopsworks/tools/auditship/-/raw/master/auditship.logrotate.conf?ref_type=heads
3539 dest : /etc/logrotate.d/auditship
3640 owner : root
3741 group : root
38- mode : 0644
42+ mode : ' 0644'
You can’t perform that action at this time.
0 commit comments