-
Notifications
You must be signed in to change notification settings - Fork 4
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 #43 from systemli/patch-1
Bump Integration Workflow to v1.0.0
- Loading branch information
Showing
12 changed files
with
79 additions
and
160 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
skip_list: | ||
- fqcn-builtins | ||
- no-handler | ||
exclude_paths: | ||
- molecule/ | ||
- .github/ |
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,26 +1,32 @@ | ||
--- | ||
|
||
- name: restart murmur | ||
service: | ||
- name: Restart murmur | ||
ansible.builtin.service: | ||
name: mumble-server | ||
state: restarted | ||
|
||
- name: restart munin-node | ||
service: | ||
- name: Restart munin-node | ||
ansible.builtin.service: | ||
name: munin-node | ||
state: restarted | ||
|
||
- name: restart monit | ||
service: | ||
- name: Restart monit | ||
ansible.builtin.service: | ||
name: monit | ||
state: restarted | ||
|
||
- name: set superuser password | ||
command: murmurd -ini /etc/mumble-server.ini -supw "{{ murmur_superuser_password }}" | ||
- name: Set superuser password | ||
ansible.builtin.command: murmurd -ini /etc/mumble-server.ini -supw "{{ murmur_superuser_password }}" | ||
register: murmurd_superuser_password | ||
changed_when: murmurd_superuser_password.rc != 0 | ||
failed_when: False | ||
|
||
- name: restart mumble-web | ||
systemd: | ||
- name: Restart mumble-web | ||
ansible.builtin.systemd: | ||
daemon_reload: True | ||
name: mumble-web | ||
state: restarted | ||
|
||
- name: Set Python capabilities | ||
community.general.capabilities: | ||
path: /usr/bin/python2.7 | ||
capability: cap_net_bind_service=ei |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
--- | ||
|
||
roles: | ||
- geerlingguy.nodejs | ||
- name: geerlingguy.nodejs | ||
version: 6.1.1 | ||
collections: | ||
- community.general |
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,18 +1,17 @@ | ||
--- | ||
|
||
- name: Import mumble tasks | ||
import_tasks: mumble.yml | ||
ansible.builtin.import_tasks: mumble.yml | ||
|
||
- name: Import mumble-web tasks | ||
import_tasks: mumble-web.yml | ||
ansible.builtin.import_tasks: mumble-web.yml | ||
when: mumble_web | ||
tags: mumble-web | ||
|
||
- name: Import monitoring tasks | ||
import_tasks: monitoring.yml | ||
ansible.builtin.import_tasks: monitoring.yml | ||
when: murmur_monitoring_monit_enabled or murmur_monitoring_munin_enabled | ||
|
||
- name: Import goss tasks | ||
import_tasks: goss.yml | ||
ansible.builtin.import_tasks: goss.yml | ||
tags: | ||
- goss |
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,32 +1,31 @@ | ||
--- | ||
|
||
- name: Install dependencies to make munin plugin work | ||
apt: | ||
ansible.builtin.apt: | ||
pkg: "{{ murmur_monitoring_munin_packages }}" | ||
|
||
# plugin taken from https://github.com/Natenom/munin-plugins/issues/10 | ||
- name: copy munin plugin | ||
copy: | ||
- name: Copy munin plugin | ||
ansible.builtin.copy: | ||
src: murmur-munin.py | ||
dest: /usr/local/share/ | ||
owner: root | ||
group: root | ||
mode: 0755 | ||
mode: "0755" | ||
|
||
- name: ensure mumble plugins are present | ||
file: | ||
- name: Ensure mumble plugins are present | ||
ansible.builtin.file: | ||
src: "/usr/local/share/murmur-munin.py" | ||
dest: "/etc/munin/plugins/mumble" | ||
state: link | ||
when: murmur_monitoring_munin_enabled | ||
notify: restart munin-node | ||
notify: Restart munin-node | ||
|
||
- name: ensure monit service config is latest | ||
copy: | ||
- name: Ensure monit service config is latest | ||
ansible.builtin.copy: | ||
src: "monit/conf.d/mumble-server" | ||
dest: "/etc/monit/conf.d/mumble-server" | ||
owner: root | ||
group: root | ||
mode: 0600 | ||
notify: restart monit | ||
mode: "0600" | ||
notify: Restart monit | ||
when: murmur_monitoring_monit_enabled |
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,53 +1,53 @@ | ||
--- | ||
- name: check if murmurd is already installed. | ||
stat: | ||
- name: Check if murmurd is already installed. | ||
ansible.builtin.stat: | ||
path: /usr/sbin/murmurd | ||
register: murmurd_installed | ||
|
||
- name: ensure required packages are present | ||
apt: | ||
- name: Ensure required packages are present | ||
ansible.builtin.apt: | ||
pkg: mumble-server | ||
cache_valid_time: 3600 | ||
|
||
- name: generate the Murmur config file | ||
template: | ||
- name: Generate the Murmur config file | ||
ansible.builtin.template: | ||
src: "mumble-server.ini.j2" | ||
dest: "/etc/mumble-server.ini" | ||
owner: root | ||
group: mumble-server | ||
mode: 0640 | ||
notify: restart murmur | ||
mode: "0640" | ||
notify: Restart murmur | ||
|
||
- name: Allow mumble user to access sslkey | ||
block: | ||
- name: check if we can access key | ||
command: cat "{{ murmur_sslkey }}" | ||
- name: Check if we can access key | ||
ansible.builtin.command: cat "{{ murmur_sslkey }}" | ||
become: true | ||
become_user: mumble-server | ||
changed_when: false | ||
check_mode: false | ||
|
||
rescue: | ||
- name: ensure mumble owns key | ||
file: | ||
- name: Ensure mumble owns key | ||
ansible.builtin.file: | ||
path: "{{ murmur_sslkey }}" | ||
owner: root | ||
group: mumble-server | ||
mode: 0640 | ||
notify: restart murmur | ||
mode: "0640" | ||
notify: Restart murmur | ||
|
||
- name: always start service | ||
service: | ||
- name: Always start service | ||
ansible.builtin.service: | ||
name: mumble-server | ||
enabled: True | ||
state: started | ||
|
||
- name: write superuser password to a file | ||
copy: | ||
- name: Write superuser password to a file | ||
ansible.builtin.copy: | ||
content: "{{ murmur_superuser_password }}" | ||
dest: /etc/mumble-superuser | ||
owner: root | ||
group: root | ||
mode: 0600 | ||
when: murmur_superuser_password is defined | ||
notify: set superuser password | ||
notify: Set superuser password |