mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	* bulk change use_cache/no_network->internet_available * bulk change use_cache/no_network->internet_available * remove unuseful debug statements * remove download tags * appendix has_internet_connection * ubuntu dhcpd needs to connect to br0
		
			
				
	
	
		
			32 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| - name: Get the Dokuwiki software
 | |
|   get_url: url="{{ iiab_download_url }}/{{ dokuwiki_version }}.tgz"  dest={{ downloads_dir}}/
 | |
|   when: internet_available 
 | |
| 
 | |
| - name: Copy it to permanent location /library
 | |
|   unarchive: src={{ downloads_dir }}/{{ dokuwiki_version }}.tgz  dest=/library creates=/library/{{ dokuwiki_version }}/VERSION
 | |
| 
 | |
| - name: Symlink /library/dokuwiki* to /library/dokuwiki
 | |
|   shell: if [ ! -d /library/dokuwiki ]; then ln -sf /library/{{ dokuwiki_version }} /library/dokuwiki; fi
 | |
| 
 | |
| - name: Install config file for dokuwiki in Apache
 | |
|   template: src=dokuwiki.conf.j2 dest=/etc/{{ apache_config_dir }}/dokuwiki.conf
 | |
|   when: dokuwiki_enabled
 | |
| 
 | |
| - name: enable the dokuwiki
 | |
|   file: path=/etc/apache2/sites-enabled/dokuwiki.conf
 | |
|         src=/etc/apache2/sites-available/dokuwiki.conf
 | |
|         state=link
 | |
|   when: dokuwiki_enabled and is_debuntu
 | |
|               
 | |
| - name: disable the dokuwiki
 | |
|   file: path=/etc/apache2/sites-enabled/dokuwiki.conf
 | |
|         state=absent
 | |
|   when: not dokuwiki_enabled and is_debuntu
 | |
| 
 | |
| 
 | |
| - name: Change permissions on engine directory so apache can write
 | |
|   file: path=/library/{{ dokuwiki_version }} owner={{ apache_user }} mode=0755 state=directory recurse=yes
 | |
| 
 | |
| - name: Restart apache, so it picks up the new aliases
 | |
|   service: name={{ apache_service }} state=restarted
 | |
| 
 |