Sha256: 7b8207014612250a61a0b6000d71393d893fc26013220c996ed63b2e3f6c989a

Contents?: true

Size: 1.49 KB

Versions: 4

Compression:

Stored size: 1.49 KB

Contents

---
  - name: Add yarn apt key
    apt_key:
      url: https://dl.yarnpkg.com/debian/pubkey.gpg
      state: present

  - name: Add yarn apt repo
    apt_repository:
      repo: deb https://dl.yarnpkg.com/debian/ stable main
      state: present

  - name: Install rails apt dependencies
    apt:
      name: "{{item}}"
    with_items:
      - git
      - imagemagick
      - libffi-dev
      - libgmp3-dev
      - libmagickwand-dev
      - libpq-dev
      - libxslt-dev
      - nodejs
      - zlib1g-dev
      - yarn
    become: true

  - name: Create /u/apps/{{project_name}}/shared/config
    file:
      path: /u/apps/{{project_name}}/shared/config/
      state: directory
    become: true
    become_user: "{{deploy_user}}"

  - name: Create database.yml
    template:
      src: database.yml
      dest: /u/apps/{{project_name}}/shared/config/database.yml
      owner: "{{deploy_user}}"
    become: true

  - name: Create application.yml (legacy)
    when: appyml is defined
    template:
      src: application.yml
      dest: /u/apps/{{project_name}}/shared/config/application.yml
      owner: "{{deploy_user}}"
    become: true

  - debug:
      msg: "Warning: Using legacy appyml for variable configuration.  Consider switching to application.yml.template"
      verbosity: 0
    when: appyml is defined

  - name: Create application.yml
    when: appyml is not defined
    template:
      src: application.yml.template
      dest: /u/apps/{{project_name}}/shared/config/application.yml
      owner: "{{deploy_user}}"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
subspace-0.5.15 ansible/roles/rails/tasks/main.yml
subspace-0.5.14 ansible/roles/rails/tasks/main.yml
subspace-0.4.14 ansible/roles/rails/tasks/main.yml
subspace-0.4.13 ansible/roles/rails/tasks/main.yml