Sha256: d657f92f1101fc9d53687882433df5061704003d8b4436621e548bcdac1d910a

Contents?: true

Size: 1.71 KB

Versions: 2

Compression:

Stored size: 1.71 KB

Contents

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

  - name: Install imagemagick
    apt:
      name: ['imagemagick', 'libmagickwand-dev']
    become: true
    tags:
      - imagemagick

  - name: Update ImageMagick policy to enable reading PDF files
    lineinfile:
      path: /etc/ImageMagick-6/policy.xml
      regexp: '<policy domain="coder" rights="none" pattern="PDF" />'
      line: '  <policy domain="coder" rights="read" pattern="PDF" />'
    become: true
    tags:
      - imagemagick


  - 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
    tags:
      - appyml

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

  - 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}}"
    tags:
      - appyml

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
subspace-1.0.4 ansible/roles/rails/tasks/main.yml
subspace-1.0.3 ansible/roles/rails/tasks/main.yml