Installing from stretch-backports.

This commit is contained in:
Madis Martin Lutter 2018-06-06 18:08:51 +03:00
parent fb20560801
commit 9545cb5c46
2 changed files with 9 additions and 9 deletions

2
hosts
View File

@ -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

View File

@ -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: