Playbooks to a new Lilik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

37 lines
786 B

- name: install login packages
apt:
name: "{{ item }}"
state: present
update_cache: yes
cache_valid_time: 3600
install_recommends: '{{ install_recommends | default("no") }}'
with_items:
- git
- python3
- python3-ldap3
- python3-flask
- name: clone login repository
git:
repo: http://projects.lilik.it/lilik/lilik_users3.git
dest: /srv/login
notify:
- restart login
- name: add login init script
template: src=login.j2 dest=/etc/init.d/login mode=755
register: add_login_startup_script
notify:
- restart login
- name: reload systemd
systemd:
daemon_reload: yes
name: login
when: add_login_startup_script.changed
- include_role:
name: service
vars:
service_name: login
service_packages: null