mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-11-04 04:08:15 +00:00 
			
		
		
		
	Removed debuging message
This commit is contained in:
		@@ -5,18 +5,13 @@
 | 
			
		||||
    patterns: '*.*.conf'
 | 
			
		||||
  register: conf_files
 | 
			
		||||
 | 
			
		||||
- name: Print conf_files domains
 | 
			
		||||
  debug:
 | 
			
		||||
    var: conf_files
 | 
			
		||||
 | 
			
		||||
- name: Filter domain names and remove .conf extension and path
 | 
			
		||||
  set_fact:
 | 
			
		||||
    filtered_domains: "{{ conf_files.files | map(attribute='path') | map('regex_search', domain_regex) | select('string') | map('regex_replace', '^/etc/nginx/conf.d/', '') | map('regex_replace', '.conf$', '') | list }}"
 | 
			
		||||
  vars:
 | 
			
		||||
    domain_regex: '^/etc/nginx/conf.d/(?!www\.)[^/]+\.conf$'
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
- name: Print filtered domains
 | 
			
		||||
- name: The domains for which a www. redirect will be implemented
 | 
			
		||||
  debug:
 | 
			
		||||
    var: filtered_domains
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user