Downloads and installs the rutorrent php code. Templates config.php.
# Ansible version 2.0.0.2+
ansible --version
# OS
case $OSTYPE in
# Linux needs apt
"linux"*)
apt --version;;
# FreeBSD needs pkg
"freebsd"*)
pkgng --version;;
esac
# ----- install -----
rutorrent_repo: https://github.com/Novik/ruTorrent.git
rutorrent_version: master
rutorrent_force_udpate: no
# ----- dir settings -----
rutorrent_dir_install: /var/www/rutorrent
rutorrent_dir_install_group: www-data
rutorrent_dir_install_owner: www-data
# ----- bin path settings -----
rutorrent_path_php:
rutorrent_path_curl: /usr/bin/curl
rutorrent_path_gzip:
rutorrent_path_id: /usr/bin/id
rutorrent_path_stat: /usr/bin/stat
None.
- hosts: torrent-servers
roles:
- role: cmprescott.ruTorrent
BSD
Prescott Chris