Add software role and matrix federation button
This commit is contained in:
		
							parent
							
								
									7d8fa25ad9
								
							
						
					
					
						commit
						f1b7c65577
					
				
					 4 changed files with 33 additions and 8 deletions
				
			
		| 
						 | 
					@ -2,6 +2,14 @@
 | 
				
			||||||
- name: Run all roles
 | 
					- name: Run all roles
 | 
				
			||||||
  hosts: serguzim_net
 | 
					  hosts: serguzim_net
 | 
				
			||||||
  tasks:
 | 
					  tasks:
 | 
				
			||||||
 | 
					    - name: Install software
 | 
				
			||||||
 | 
					      ansible.builtin.include_role:
 | 
				
			||||||
 | 
					        name: software
 | 
				
			||||||
 | 
					        apply:
 | 
				
			||||||
 | 
					          tags: software
 | 
				
			||||||
 | 
					      tags: software
 | 
				
			||||||
 | 
					      when: "inventory_hostname == 'node003'"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - name: Include common roles
 | 
					    - name: Include common roles
 | 
				
			||||||
      ansible.builtin.include_role:
 | 
					      ansible.builtin.include_role:
 | 
				
			||||||
        name: "{{ services_item }}"
 | 
					        name: "{{ services_item }}"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,9 +9,11 @@ gatus_external_endpoints_backups: "{{ vault_hosts | vault_hosts_backup_to_gatus(
 | 
				
			||||||
gatus_endpoints_hosts: "{{ opentofu.hosts | hosts_to_gatus() }}"
 | 
					gatus_endpoints_hosts: "{{ opentofu.hosts | hosts_to_gatus() }}"
 | 
				
			||||||
gatus_endpoints_services: "{{ all_services | services_to_gatus() }}"
 | 
					gatus_endpoints_services: "{{ all_services | services_to_gatus() }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					gatus_federation_tester: "https://federationtester.matrix.org/api/report?server_name=msrg.cc"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
gatus_endpoints_other:
 | 
					gatus_endpoints_other:
 | 
				
			||||||
  - name: matrix-federation
 | 
					  - name: matrix-federation
 | 
				
			||||||
    url: https://federationtester.matrix.org/api/report?server_name=msrg.cc
 | 
					    url: "{{ gatus_federation_tester }}"
 | 
				
			||||||
    group: 9-external
 | 
					    group: 9-external
 | 
				
			||||||
    interval: 5m
 | 
					    interval: 5m
 | 
				
			||||||
    conditions:
 | 
					    conditions:
 | 
				
			||||||
| 
						 | 
					@ -51,6 +53,11 @@ gatus_yml:
 | 
				
			||||||
      client-secret: "{{ opentofu.authentik_data.gatus.client_secret }}"
 | 
					      client-secret: "{{ opentofu.authentik_data.gatus.client_secret }}"
 | 
				
			||||||
      scopes: ["openid"]
 | 
					      scopes: ["openid"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ui:
 | 
				
			||||||
 | 
					    buttons:
 | 
				
			||||||
 | 
					      - name: Matrix Federation Tester
 | 
				
			||||||
 | 
					        link: "{{ gatus_federation_tester }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  alerting:
 | 
					  alerting:
 | 
				
			||||||
    email: "{{ vault_gatus.alerting.email }}"
 | 
					    email: "{{ vault_gatus.alerting.email }}"
 | 
				
			||||||
    ntfy: "{{ vault_gatus.alerting.ntfy }}"
 | 
					    ntfy: "{{ vault_gatus.alerting.ntfy }}"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,10 +1,3 @@
 | 
				
			||||||
- name: Install aptitude
 | 
					 | 
				
			||||||
  apt:
 | 
					 | 
				
			||||||
    name: aptitude
 | 
					 | 
				
			||||||
    state: latest
 | 
					 | 
				
			||||||
    update_cache: true
 | 
					 | 
				
			||||||
  become: true
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- name: Install required system packages
 | 
					- name: Install required system packages
 | 
				
			||||||
  apt:
 | 
					  apt:
 | 
				
			||||||
    pkg:
 | 
					    pkg:
 | 
				
			||||||
							
								
								
									
										17
									
								
								roles/software/tasks/main.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								roles/software/tasks/main.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,17 @@
 | 
				
			||||||
 | 
					- name: Install aptitude
 | 
				
			||||||
 | 
					  apt:
 | 
				
			||||||
 | 
					    name: aptitude
 | 
				
			||||||
 | 
					    state: latest
 | 
				
			||||||
 | 
					    update_cache: true
 | 
				
			||||||
 | 
					  become: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: Install docker
 | 
				
			||||||
 | 
					  ansible.builtin.import_tasks: docker.yml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: Install jq
 | 
				
			||||||
 | 
					  apt:
 | 
				
			||||||
 | 
					    pkg:
 | 
				
			||||||
 | 
					      - jq
 | 
				
			||||||
 | 
					    state: latest
 | 
				
			||||||
 | 
					    update_cache: true
 | 
				
			||||||
 | 
					  become: true
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue