Fixing issue with configuration of epoptes on client. Configuring the local mirrored sys42 repo.

This commit is contained in:
Emiliano Vavassori 2015-09-21 22:35:35 +02:00
parent 7641fd93f3
commit f21d61364f
2 changed files with 10 additions and 2 deletions

View File

@ -23,8 +23,7 @@
replace:
dest: /etc/default/epoptes-client
regexp: "^#SERVER=server"
line: "SERVER={{ epo_srv_name.stdout }}"
state: present
replace: "SERVER={{ epo_srv_name.stdout }}"
when: epo_srv_name|changed
- name: Checking for an already existent certificate

View File

@ -6,6 +6,15 @@
line: 'deb http://bglug.sys42.eu/ubuntu trusty main'
create: yes
state: present
when: ansible_product_name == 'VirtualBox'
- name: Adding mirrored sys42 repo
lineinfile:
dest: /etc/apt/sources.list.d/sys42.list
line: 'deb http://{{ ansible_local.domain.mirrorpath }}bglug.sys42.eu/ubuntu trusty main'
create: yes
state: present
when: ansible_product_name != 'VirtualBox'
- name: Reloading available packages
apt: