Compare commits

..

No commits in common. "48f3dee82f7e0839ef2d9530930b58a8ff3a3455" and "3230e28bc68b4e32e821895931238d7f39a4ed30" have entirely different histories.

6 changed files with 22 additions and 64 deletions

View File

@ -1,6 +1,6 @@
Summary: LibreSchool Client Manager
Name: libreschool-client-manager
Version: 1.0.5
Version: 1.0.4
Release: 1.ns7
License: GPL
BuildArch: noarch
@ -97,21 +97,18 @@ if [ "$1" = 0 ]; then
fi
%changelog
* Sun Apr 5 2020 Paolo Asperti <paolo@asperti.com> - 1.0.5-1.ns7
- playbook split + added ntp
* Thu Apr 2 2020 Paolo Asperti <paolo@asperti.com> - 1.0.4-1.ns7
* Thu Apr 2 2020 Paolo Asperti <paolo@asoerti.com> - 1.0.4-1.ns7
- per-host log files
* Sun Mar 8 2020 Paolo Asperti <paolo@asperti.com> - 1.0.3-1.ns7
* Sun Mar 8 2020 Paolo Asperti <paolo@asoerti.com> - 1.0.3-1.ns7
- fix re-adoption
* Sat Mar 7 2020 Paolo Asperti <paolo@asperti.com> - 1.0.2-1.ns7
* Sat Mar 7 2020 Paolo Asperti <paolo@asoerti.com> - 1.0.2-1.ns7
- fix re-adoption
- added some required packages
- updated readme
* Sun Mar 1 2020 Paolo Asperti <paolo@asperti.com> - 1.0.1-1.ns7
* Sun Mar 1 2020 Paolo Asperti <paolo@asoerti.com> - 1.0.1-1.ns7
- added client shell
- fixed amgmt user creation
- fix creation of httpd config

View File

@ -1,4 +0,0 @@
---
- name: restart systemd-timesyncd
service: name=systemd-timesyncd state=restarted

View File

@ -1,16 +0,0 @@
---
- name: Add LibreSchool signing key
apt_key:
url: http://repo.libreschool.org/libreschool.asc
state: present
- name: Add LibreSchool repository
apt_repository:
repo: deb http://repo.libreschool.org/ubuntu {{ ansible_distribution_release }} main
state: present
- name: Update repositories cache and install "libreschool-client" package
apt:
name: libreschool-client
update_cache: yes

View File

@ -5,8 +5,22 @@
register: esmith
delegate_to: localhost
- include: libreschool_repo.yml
- name: Add LibreSchool signing key
apt_key:
url: http://repo.libreschool.org/libreschool.asc
state: present
- include: required_packages.yml
- name: Add LibreSchool repository
apt_repository:
repo: deb http://repo.libreschool.org/ubuntu {{ ansible_distribution_release }} main
state: present
- include: ntp.yml
- name: Update repositories cache and install "libreschool-client" package
apt:
name: libreschool-client
update_cache: yes
- name: Installing common required packages
apt:
name: [ 'debconf', 'debconf-utils' ]
state: latest

View File

@ -1,26 +0,0 @@
---
# TODO: check for other distro, maybe we should first check if we have systemd,
# and if so, we have to properly configure it. If we don't have systemd,
# we have to install and configure ntpd
- name: Remove NTP package as we use systemd
apt:
name: [ 'ntp' ]
state: absent
- name: Setup NTP server
ini_file:
path: /etc/systemd/timesyncd.conf
section: Time
option: NTP
value: "{{ esmith.SystemName }}.{{ esmith.DomainName }}"
notify: restart systemd-timesyncd
- name: Setup Fallback NTP server
ini_file:
path: /etc/systemd/timesyncd.conf
section: Time
option: FallbackNTP
value: pool.ntp.org
notify: restart systemd-timesyncd

View File

@ -1,7 +0,0 @@
---
- name: Installing common required packages
apt:
name: [ 'debconf', 'debconf-utils' ]
state: latest