renamed task
This commit is contained in:
37
lava-install.yml
Normal file
37
lava-install.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
- 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: lava-server
|
||||
state: present
|
||||
default_release: stretch-backports
|
||||
update_cache: yes
|
||||
cache_valid_time: 3600
|
||||
- name: Disable default site
|
||||
shell: a2dissite 000-default
|
||||
args:
|
||||
removes: /etc/apache2/sites-enabled/000-default.conf
|
||||
- name: Enable proxy module
|
||||
apache2_module:
|
||||
name: proxy_http
|
||||
- name: Enable the lava site
|
||||
shell: a2ensite lava-server
|
||||
args:
|
||||
creates: /etc/apache2/sites-enabled/lava-server.conf
|
||||
notify: reload apache
|
||||
- name: Create root account
|
||||
shell: lava-server manage createsuperuser --username root --noinput
|
||||
- name: Set default password
|
||||
expect:
|
||||
command: lava-server manage changepassword root
|
||||
responses:
|
||||
Password: root
|
||||
Password (again): root
|
||||
handlers:
|
||||
- name: reload apache
|
||||
service:
|
||||
name: apache2
|
||||
state: reloaded
|
||||
Reference in New Issue
Block a user