Compare commits
2 Commits
3230e28bc6
...
48f3dee82f
Author | SHA1 | Date | |
---|---|---|---|
48f3dee82f | |||
3b8eec9981 |
@ -1,6 +1,6 @@
|
|||||||
Summary: LibreSchool Client Manager
|
Summary: LibreSchool Client Manager
|
||||||
Name: libreschool-client-manager
|
Name: libreschool-client-manager
|
||||||
Version: 1.0.4
|
Version: 1.0.5
|
||||||
Release: 1.ns7
|
Release: 1.ns7
|
||||||
License: GPL
|
License: GPL
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -97,18 +97,21 @@ if [ "$1" = 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Apr 2 2020 Paolo Asperti <paolo@asoerti.com> - 1.0.4-1.ns7
|
* 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
|
||||||
- per-host log files
|
- per-host log files
|
||||||
|
|
||||||
* Sun Mar 8 2020 Paolo Asperti <paolo@asoerti.com> - 1.0.3-1.ns7
|
* Sun Mar 8 2020 Paolo Asperti <paolo@asperti.com> - 1.0.3-1.ns7
|
||||||
- fix re-adoption
|
- fix re-adoption
|
||||||
|
|
||||||
* Sat Mar 7 2020 Paolo Asperti <paolo@asoerti.com> - 1.0.2-1.ns7
|
* Sat Mar 7 2020 Paolo Asperti <paolo@asperti.com> - 1.0.2-1.ns7
|
||||||
- fix re-adoption
|
- fix re-adoption
|
||||||
- added some required packages
|
- added some required packages
|
||||||
- updated readme
|
- updated readme
|
||||||
|
|
||||||
* Sun Mar 1 2020 Paolo Asperti <paolo@asoerti.com> - 1.0.1-1.ns7
|
* Sun Mar 1 2020 Paolo Asperti <paolo@asperti.com> - 1.0.1-1.ns7
|
||||||
- added client shell
|
- added client shell
|
||||||
- fixed amgmt user creation
|
- fixed amgmt user creation
|
||||||
- fix creation of httpd config
|
- fix creation of httpd config
|
||||||
|
4
root/etc/ansible/roles/common/handlers/main.yml
Normal file
4
root/etc/ansible/roles/common/handlers/main.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
- name: restart systemd-timesyncd
|
||||||
|
service: name=systemd-timesyncd state=restarted
|
||||||
|
|
16
root/etc/ansible/roles/common/tasks/libreschool_repo.yml
Normal file
16
root/etc/ansible/roles/common/tasks/libreschool_repo.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- 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
|
@ -5,22 +5,8 @@
|
|||||||
register: esmith
|
register: esmith
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|
||||||
- name: Add LibreSchool signing key
|
- include: libreschool_repo.yml
|
||||||
apt_key:
|
|
||||||
url: http://repo.libreschool.org/libreschool.asc
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: Add LibreSchool repository
|
- include: required_packages.yml
|
||||||
apt_repository:
|
|
||||||
repo: deb http://repo.libreschool.org/ubuntu {{ ansible_distribution_release }} main
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: Update repositories cache and install "libreschool-client" package
|
- include: ntp.yml
|
||||||
apt:
|
|
||||||
name: libreschool-client
|
|
||||||
update_cache: yes
|
|
||||||
|
|
||||||
- name: Installing common required packages
|
|
||||||
apt:
|
|
||||||
name: [ 'debconf', 'debconf-utils' ]
|
|
||||||
state: latest
|
|
||||||
|
26
root/etc/ansible/roles/common/tasks/ntp.yml
Normal file
26
root/etc/ansible/roles/common/tasks/ntp.yml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
# 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
|
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Installing common required packages
|
||||||
|
apt:
|
||||||
|
name: [ 'debconf', 'debconf-utils' ]
|
||||||
|
state: latest
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user