Commit be6fd98e authored by Jonathan Blum's avatar Jonathan Blum

install php deps, create user & git clone

parent 517745d9
---
# defaults file for itopie.privatebin
privatebin_user: privatebin
privatebin_intsall_path: /srv/privatebin
privatebin_version: "1.3.1"
---
# handlers file for itopie.privatebin
- name: restart apache
service:
name: apache2
state: restarted
......@@ -33,17 +33,10 @@ galaxy_info:
#
# platforms is a list of platforms, and each platform has a name and a list of versions.
#
# platforms:
# - name: Fedora
# versions:
# - all
# - 25
# - name: SomePlatform
# versions:
# - all
# - 1.0
# - 7
# - 99.99
platforms:
- name: Debian
versions:
- buster
galaxy_tags: []
# List tags for your role here, one per line. A tag is a keyword that describes
......
---
- name: PRIVATEBIN | INSTALL | create dedicated user
user:
name: "{{ privatebin_user }}"
comment: "PrivateBin User"
groups: www-data
append: yes
- name: PRIVATEBIN | INSTALL | Clone PrivateBin repository
git:
repo: 'https://github.com/PrivateBin/PrivateBin.git'
dest: "{{ privatebin_install_path }}"
version: "{{ privatebin_version }}"
---
# tasks file for itopie.privatebin
- name: PRIVATEBIN | import php-related tasks
import_tasks: php.yml
- name: PRIVATEBIN | import privatebin-related tasks
import_tasks: install.yml
---
- name: PRIVATEBINN | PHP | Install Depedencies
package:
name:
- php-mcrypt
- php-libsodium
- php-gd
- php-mbstring
- php-json
- php-pdo
- php-xml
state: present
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment