kso512.install-picocms

Build Status

install-picocms

This is an Ansible Role for installing PicoCMS.

PicoCMS is a very simple and fast flat-file CMS (Content Management System).

Requirements

To use TLS (secure connection), create a TLS certificate and key pair, then assign it to this role.

Role Variables

Variable Description Default Value
install_picocms_version The version of PicoCMS you want to install 1.0.5
install_picocms_filename The short name of the PicoCMS source archive pico-release-v{{ install_picocms_version }}.tar.gz
install_picocms_url The URL to download the PicoCMS source archive https://github.com/picocms/Pico/releases/download/v{{ install_picocms_version }}/{{ install_picocms_filename }}
install_picocms_dest Where to save the PicoCMS source archive locally /root/{{ install_picocms_filename }}
install_picocms_owner The owner of the local PicoCMS source archive root
install_picocms_group The group of the local PicoCMS source archive {{ install_picocms_owner }}
install_picocms_httpdocs Where to extract the files /var/www/html
install_picocms_content_src The folder for source content {{ install_picocms_httpdocs }}/content-sample

Dependencies

PicoCMS needs PHP and a web server to work.

I used roles from geerlingguy for this:

Overrides

apache_remove_default_vhost: true
apache_global_vhost_settings: |
  DirectoryIndex index.php index.html
apache_vhosts:
  - servername: "{{ ansible_fqdn }}"
    documentroot: "/var/www/html"
    extra_parameters: |
          ProxyPassMatch ^/(.*\.php(/.*)?)$ "fcgi://127.0.0.1:9000/var/www/html"
php_enable_php_fpm: true
php_packages_extra:
  - libapache2-mod-fastcgi

Example Playbook

Here’s a complete example:

- hosts: servers
  roles:
     - { role: kso512.install-picocms, apache_remove_default_vhost: true }

License

This software is licensed under BSD.

Author Information

Chris Lindbergh

Informazioni sul progetto

A role to install PicoCMS.

Installa
ansible-galaxy install kso512.install-picocms
Licenza
bsd-2-clause
Download
70
Proprietario