Installing from stretch-backports.
This commit is contained in:
parent
fb20560801
commit
9545cb5c46
2
hosts
2
hosts
@ -43,4 +43,4 @@
|
|||||||
#db-[99:101]-node.example.com
|
#db-[99:101]-node.example.com
|
||||||
|
|
||||||
# Host from my ~/.ssh/config
|
# 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
|
- hosts: all
|
||||||
tasks:
|
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:
|
apt:
|
||||||
name:
|
name: lava-server
|
||||||
- postgresql
|
|
||||||
- lava-server
|
|
||||||
- apache2
|
|
||||||
state: present
|
state: present
|
||||||
|
default_release: stretch-backports
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
cache_valid_time: 3600
|
cache_valid_time: 3600
|
||||||
notify: reload apache
|
|
||||||
- name: Disable default site
|
- name: Disable default site
|
||||||
shell: a2dissite 000-default
|
shell: a2dissite 000-default
|
||||||
args:
|
args:
|
||||||
@ -23,8 +23,8 @@
|
|||||||
creates: /etc/apache2/sites-enabled/lava-server.conf
|
creates: /etc/apache2/sites-enabled/lava-server.conf
|
||||||
notify: reload apache
|
notify: reload apache
|
||||||
- name: Create root account
|
- name: Create root account
|
||||||
shell: lava-server manage createsuperuser --username root --email root@example.com --noinput
|
shell: lava-server manage createsuperuser --username root --noinput
|
||||||
- name: Set temporary password
|
- name: Set default password
|
||||||
expect:
|
expect:
|
||||||
command: lava-server manage changepassword root
|
command: lava-server manage changepassword root
|
||||||
responses:
|
responses:
|
||||||
|
Loading…
Reference in New Issue
Block a user