From 9545cb5c46588189c5a7ed85b27b11ec44e32b76 Mon Sep 17 00:00:00 2001 From: Madis Martin Lutter Date: Wed, 6 Jun 2018 18:08:51 +0300 Subject: [PATCH] Installing from stretch-backports. --- hosts | 2 +- lava.yml | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/hosts b/hosts index 7ebc221..e6e4f25 100644 --- a/hosts +++ b/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 diff --git a/lava.yml b/lava.yml index fc427eb..6e13b0f 100644 --- a/lava.yml +++ b/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: