Initial import
This commit is contained in:
commit
c28551bb63
22 changed files with 357 additions and 0 deletions
53
roles/retwis/tasks/main.yml
Normal file
53
roles/retwis/tasks/main.yml
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
---
|
||||
- name: Download Retwis Application
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ retwis_download_tgz_url }}"
|
||||
dest: "/tmp/retwis-{{ retwis_version }}.tar.gz"
|
||||
validate_certs: false
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0600"
|
||||
tags:
|
||||
- install
|
||||
|
||||
- name: Clean up document root
|
||||
ansible.builtin.file:
|
||||
path: "/var/www/html/app"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
loop:
|
||||
- absent
|
||||
- directory
|
||||
tags:
|
||||
- install
|
||||
|
||||
- name: Extract retwis software archive to documentroot
|
||||
ansible.builtin.unarchive:
|
||||
src: "/tmp/retwis-{{ retwis_version }}.tar.gz"
|
||||
dest: /var/www/html/app
|
||||
remote_src: true
|
||||
extra_opts:
|
||||
- --strip-components=1
|
||||
- --directory=/var/www/html/app
|
||||
tags:
|
||||
- install
|
||||
|
||||
- name: Gather facts from redis server systems
|
||||
ansible.builtin.setup:
|
||||
delegate_to: "{{ item }}"
|
||||
delegate_facts: true
|
||||
loop: "{{ groups[redis_server_group] }}"
|
||||
tags:
|
||||
- install
|
||||
- configure
|
||||
|
||||
- name: Deploy .htconfig template for Retwis Webapp configuration
|
||||
ansible.builtin.template:
|
||||
src: dot-htconfig.php
|
||||
dest: /var/www/html/app/.htconfig.php
|
||||
mode: "0644"
|
||||
owner: apache
|
||||
group: apache
|
||||
tags:
|
||||
- install
|
||||
- configure
|
||||
Loading…
Add table
Add a link
Reference in a new issue