mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-11-04 04:08:15 +00:00 
			
		
		
		
	THE HUGE REFACTORING CALENDER WEEK 33; Optimized Matrix and during this updated variables, and implemented better reset and cleanup mode handling, also solved some initial setup bugs
This commit is contained in:
		@@ -30,7 +30,7 @@
 | 
			
		||||
  set_fact:
 | 
			
		||||
    service_name: "{{ role_name }}"
 | 
			
		||||
 | 
			
		||||
- name: "include role for sys-timer for {{service_name}}"
 | 
			
		||||
- name: "include role for sys-timer for {{ service_name }}"
 | 
			
		||||
  include_role:
 | 
			
		||||
    name: sys-timer
 | 
			
		||||
  vars:
 | 
			
		||||
 
 | 
			
		||||
@@ -12,6 +12,7 @@
 | 
			
		||||
      database_username: "{{ database_username | default('undefined') }}"
 | 
			
		||||
      database_password: "{{ database_password | default('undefined') }}"
 | 
			
		||||
  when: MODE_DEBUG | bool
 | 
			
		||||
  no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}"
 | 
			
		||||
 | 
			
		||||
- name: "fail if not all required database variables are defined"
 | 
			
		||||
  fail:
 | 
			
		||||
@@ -25,6 +26,7 @@
 | 
			
		||||
     database_name is defined and
 | 
			
		||||
     database_username is defined and
 | 
			
		||||
     database_password is defined)
 | 
			
		||||
  no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}"
 | 
			
		||||
 | 
			
		||||
- name: "seed database values in directory {{ backup_docker_to_local_folder }}"
 | 
			
		||||
  command: >
 | 
			
		||||
@@ -40,6 +42,7 @@
 | 
			
		||||
    - database_name is defined
 | 
			
		||||
    - database_username is defined
 | 
			
		||||
    - database_password is defined
 | 
			
		||||
  no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}"
 | 
			
		||||
 | 
			
		||||
- name: Set file permissions for databases.csv to be readable, writable, and executable by root only
 | 
			
		||||
  ansible.builtin.file:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user