Add all files needed to bring up VM and run agaric.com locally

This commit is contained in:
benjamin melançon 2018-08-20 10:45:20 -04:00
parent 52c8b60bac
commit 4d2bc0ee24
742 changed files with 24037 additions and 0 deletions

View file

@ -0,0 +1,14 @@
---
- include: setup-RedHat.yml
when: ansible_os_family == 'RedHat'
- include: setup-Debian.yml
when: ansible_os_family == 'Debian'
- name: Ensure Blackfire packages are installed.
package:
name: "{{ blackfire_packages }}"
state: present
notify:
- restart webserver
- restart php-fpm

View file

@ -0,0 +1,17 @@
---
- name: Add packagecloud apt key.
apt_key:
url: "{{ blackfire_gpg_key_url }}"
state: present
- name: Add packagecloud repository.
apt_repository:
repo: "{{ item }}"
state: present
register: packagecloud_repos
with_items:
- "deb http://packages.blackfire.io/debian any main"
- name: Update apt caches after repo is added.
apt: update_cache=yes
when: packagecloud_repos.changed

View file

@ -0,0 +1,18 @@
---
- name: Add packagecloud GPG key.
rpm_key:
key: "{{ blackfire_gpg_key_url }}"
state: present
- name: Add Blackfire repository.
get_url:
url: http://packages.blackfire.io/fedora/blackfire.repo
dest: /etc/yum.repos.d/blackfire.repo
mode: 0644
- name: Disable gpg_repocheck for non-bleeding-edge CentOS.
lineinfile: >
dest=/etc/yum.repos.d/blackfire.repo
regexp="^repo_gpgcheck="
line="repo_gpgcheck=0"
state=present