Update to 2021-03-15 12:00

master
Daniel Berteaud 4 years ago
parent 5f8f23065e
commit d18f2fc56d
  1. 2
      roles/bookstack/tasks/conf.yml
  2. 2
      roles/composer/meta/main.yml
  3. 5
      roles/composer/tasks/cleanup.yml
  4. 32
      roles/composer/tasks/install.yml
  5. 1
      roles/composer/tasks/main.yml
  6. 7
      roles/repo_remi/tasks/main.yml
  7. 6
      roles/repo_remi/templates/remi-modular.repo.j2

@ -36,8 +36,10 @@
- name: Deploy permission script - name: Deploy permission script
template: src=perms.sh.j2 dest={{ bookstack_root_dir }}/perms.sh mode=755 template: src=perms.sh.j2 dest={{ bookstack_root_dir }}/perms.sh mode=755
register: bookstack_perm_script
tags: bookstack tags: bookstack
- name: Apply permissions - name: Apply permissions
command: "{{ bookstack_root_dir }}/perms.sh" command: "{{ bookstack_root_dir }}/perms.sh"
when: bookstack_perm_script.changed or bookstack_install_mode != 'none'
tags: bookstack tags: bookstack

@ -1,4 +1,4 @@
--- ---
dependencies: dependencies:
- role: httpd_common - role: httpd_php

@ -0,0 +1,5 @@
---
- name: Remove manually installed composer
file: path=/usr/local/bin/composer state=absent
tags: web

@ -1,31 +1,7 @@
--- ---
- name: Install dependencies - name: Install composer
yum: package:
name: name:
- git - composer
tags: composer tags: web
- name: download composer
get_url:
url: https://getcomposer.org/installer
dest: /tmp/installer
tags: composer
- name: install composer
shell: cat /tmp/installer | php74 -- --install-dir=/usr/local/bin
args:
creates: /usr/local/bin/composer
tags: composer
- name: rename composer.phar to composer
shell: mv /usr/local/bin/composer.phar /usr/local/bin/composer
args:
creates: /usr/local/bin/composer
tags: composer
- name: make composer executable
file:
path: /usr/local/bin/composer
mode: 755
tags: composer

@ -1,3 +1,4 @@
--- ---
- include: install.yml - include: install.yml
- include: cleanup.yml

@ -12,7 +12,7 @@
yum: name=remi-release state=absent yum: name=remi-release state=absent
tags: repo tags: repo
- name: Configure Remi Safe repository - name: Configure Remi repository
yum_repository: yum_repository:
name: remi name: remi
description: Remi's RPM repository for Enterprise Linux description: Remi's RPM repository for Enterprise Linux
@ -21,3 +21,8 @@
gpgkey: "{{ repo_remi_gpg_url }}" gpgkey: "{{ repo_remi_gpg_url }}"
tags: repo tags: repo
# Note : we use a template here because yum_repository doesn't support module_hotfix attribute
- name: Configure Remi modular repository
template: src=remi-modular.repo.j2 dest=/etc/yum.repos.d/remi-modular.repo
when: ansible_distribution_major_version is version('8','>=')
tags: repo

@ -0,0 +1,6 @@
[remi-modular]
baseurl = http://rpms.remirepo.net/enterprise/$releasever/modular/$basearch/
gpgcheck = 1
gpgkey = {{ repo_remi_gpg_url }}
name = Remi's Modular repository for Enterprise Linux
module_hotfixes = true
Loading…
Cancel
Save