mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
f319afa432
* change apache_data to apache_user in all * no libapach2 in centos. just php. no php-magick in centos * remove redundant vars entries * do not create apache user * missed one pound sign * soft code all references to apache_user * centos requires older setuptools * revert ansible_lsb.id in xsce.yml * try getting recent pip * move pip download to 2prep so that kalite success is not dependent on iiab coming first * still need to replace setuptools in kalite * add curl -- needed in debian * massivly substitue iiab for xsce, and rename files * completed runansible * centos fixes,install pip * appliance means no iptables rules * change to earlier version of setuptools for centos * delete file duplicate, hopefully unnecessary. generate the offline docs * wiki docs errors * create the admin group -- deleted earlier * use the --yes option with pip uninstall * base of repo moved from schoolserver to iiab, unleashkids.org->iiab.io * network detection broken due to tupo
79 lines
2.1 KiB
YAML
79 lines
2.1 KiB
YAML
- name: Install python-pip package
|
|
package: name=python-pip
|
|
state=present
|
|
tags:
|
|
- download
|
|
|
|
- name: Install required libraries
|
|
package: name={{ item.pkg }}
|
|
state=present
|
|
with_items:
|
|
- pkg: python-imaging
|
|
- pkg: python-devel
|
|
- pkg: libxslt-devel
|
|
- pkg: pyOpenSSL
|
|
- pkg: python-daemon
|
|
- pkg: gcc
|
|
tags:
|
|
- download
|
|
|
|
- name: download ajenti from our repo
|
|
pip: name="{{ iiab_download_url }}"/ajenti-0.99.34-patched5.tar.gz
|
|
extra_args="--download {{ pip_packages_dir }}"
|
|
when: not {{ use_cache }} and not {{ no_network }}
|
|
tags:
|
|
- download2
|
|
|
|
- name: install ajenti from local download directory
|
|
pip: name=ajenti
|
|
extra_args="--no-index --find-links=file://{{ pip_packages_dir }}"
|
|
|
|
# notify:
|
|
# - restart ajenti service
|
|
|
|
- name: download python-catcher
|
|
pip: name=python-catcher version=0.1.3
|
|
extra_args="--download {{ pip_packages_dir }}"
|
|
when: not {{ use_cache }} and not {{ no_network }}
|
|
tags:
|
|
- download2
|
|
|
|
- name: install python-catcher from local download directory
|
|
pip: name=python-catcher
|
|
extra_args="--no-index --find-links=file://{{ pip_packages_dir }}/python-catcher"
|
|
|
|
- name: change default port
|
|
lineinfile: backup=yes
|
|
dest=/etc/ajenti/config.json
|
|
state=present
|
|
backrefs=yes
|
|
regexp='"port":\s*[0-9]{1,5}'
|
|
line='"port":9990'
|
|
|
|
- name: exe permission to ajenti
|
|
file: path=/etc/rc.d/init.d/ajenti
|
|
mode=0744
|
|
state=file
|
|
|
|
- include: ajenti-wondershaper.yml
|
|
when: 'iiab_lan_iface != ""'
|
|
|
|
# handler doesn't fire
|
|
- name: restart ajenti service
|
|
service: name=ajenti
|
|
enabled=yes
|
|
state=restarted
|
|
when: ajenti_enabled
|
|
|
|
- name: Add ajenti to service list
|
|
ini_file: dest='{{ service_filelist }}'
|
|
section=ajenti
|
|
option='{{ item.option }}'
|
|
value='{{ item.value }}'
|
|
with_items:
|
|
- option: name
|
|
value: ajenti
|
|
- option: description
|
|
value: "Ajenti is a client server systems administration tool controlled by a web browser"
|
|
- option: enabled
|
|
value: "{{ ajenti_enabled }}"
|