Installing from stretch-backports.
This commit is contained in:
		
							
								
								
									
										2
									
								
								hosts
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								hosts
									
									
									
									
									
								
							| @@ -43,4 +43,4 @@ | ||||
| #db-[99:101]-node.example.com | ||||
|  | ||||
| # Host from my ~/.ssh/config | ||||
| root@172.20.8.200 | ||||
| root@172.20.8.240 | ||||
|   | ||||
							
								
								
									
										16
									
								
								lava.yml
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								lava.yml
									
									
									
									
									
								
							| @@ -1,15 +1,15 @@ | ||||
| - hosts: all | ||||
|   tasks: | ||||
|   - name: Install dependencies | ||||
|   - name: Add stretch-backports to apt sources list | ||||
|     apt_repository: | ||||
|       repo: "deb http://ftp.debian.org/debian stretch-backports main" | ||||
|   - name: Install lava-server from backports | ||||
|     apt: | ||||
|       name: | ||||
|       - postgresql | ||||
|       - lava-server | ||||
|       - apache2 | ||||
|       name: lava-server | ||||
|       state: present | ||||
|       default_release: stretch-backports | ||||
|       update_cache: yes | ||||
|       cache_valid_time: 3600 | ||||
|     notify: reload apache | ||||
|   - name: Disable default site | ||||
|     shell: a2dissite 000-default | ||||
|     args: | ||||
| @@ -23,8 +23,8 @@ | ||||
|       creates: /etc/apache2/sites-enabled/lava-server.conf | ||||
|     notify: reload apache | ||||
|   - name: Create root account | ||||
|     shell: lava-server manage createsuperuser --username root --email root@example.com --noinput | ||||
|   - name: Set temporary password | ||||
|     shell: lava-server manage createsuperuser --username root --noinput | ||||
|   - name: Set default password | ||||
|     expect: | ||||
|       command: lava-server manage changepassword root | ||||
|       responses: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user