Premier commit
This commit is contained in:
		
							
								
								
									
										23
									
								
								roles/dns-agence/files/named.conf.options
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								roles/dns-agence/files/named.conf.options
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
			
		||||
// 0.2 - putconf - vendredi 12 avril 2013, 08:54:33 (UTC+0200)
 | 
			
		||||
 | 
			
		||||
options {
 | 
			
		||||
        directory "/var/cache/bind";
 | 
			
		||||
 | 
			
		||||
        // If there is a firewall between you and nameservers you want
 | 
			
		||||
        // to talk to, you may need to fix the firewall to allow multiple
 | 
			
		||||
        // ports to talk.  See http://www.kb.cert.org/vuls/id/800113
 | 
			
		||||
 | 
			
		||||
        // If your ISP provided one or more IP addresses for stable
 | 
			
		||||
        // nameservers, you probably want to use them as forwarders.
 | 
			
		||||
        // Uncomment the following block, and insert the addresses replacing
 | 
			
		||||
        // the all-0's placeholder.
 | 
			
		||||
 | 
			
		||||
        forwarders {
 | 
			
		||||
                172.16.0.1;
 | 
			
		||||
 | 
			
		||||
         };
 | 
			
		||||
 | 
			
		||||
        auth-nxdomain no;    # conform to RFC1035
 | 
			
		||||
        listen-on-v6 { any; };
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										4
									
								
								roles/dns-agence/handlers/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								roles/dns-agence/handlers/main.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
---
 | 
			
		||||
  - name: restart bind9
 | 
			
		||||
    service: name=bind9 state=restarted
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										11
									
								
								roles/dns-agence/tasks/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								roles/dns-agence/tasks/main.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
- name: Installation bind9
 | 
			
		||||
  apt:  name=bind9 state=present update_cache=yes
 | 
			
		||||
 | 
			
		||||
- name: Copie named.conf.options
 | 
			
		||||
  copy: src=named.conf.options dest=/etc/bind
 | 
			
		||||
  notify:
 | 
			
		||||
    - restart bind9
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user