Sha256: ae1b671ce20b173ae2b830d86582f5e2de06e30c2c4ec6e413e36a7eb686fda0

Contents?: true

Size: 1.15 KB

Versions: 3

Compression:

Stored size: 1.15 KB

Contents

- name: clone the FE app
  when: fe_app_repo is defined
  remote_user: "{{ deployer_user.name }}"
  git: dest={{ fe_app_path }}
       repo={{ fe_app_repo }}
       version={{ fe_app_branch }}
       accept_hostkey=true
       force=yes
  tags: [fe_deploy]

- name: Detect package.json
  command: chdir={{ fe_app_path }}
    bash -lc 'test -e package.json'
  register: npm_result
  ignore_errors: true
  tags: [fe_deploy]

- name: NPM install
  when: fe_app_repo is defined and npm_result|success
  remote_user: "{{ deployer_user.name }}"
  command: chdir={{ fe_app_path }}
    bash -lc 'npm install'
  tags: [fe_deploy]

- name: Detect bower.json
  command: chdir={{ fe_app_path }}
    bash -lc 'test -e bower.json'
  register: bower_result
  ignore_errors: true
  tags: [fe_deploy]

- name: Bower install
  when: fe_app_repo is defined and bower_result|success
  remote_user: "{{ deployer_user.name }}"
  command: chdir={{ fe_app_path }} 
    bash -lc 'bower install'
  tags: [fe_deploy]

- name: Build FE
  when: fe_app_repo is defined
  remote_user: "{{ deployer_user.name }}"
  command: chdir={{ fe_app_path }}
    bash -lc '{{ fe_build_command }}'
  tags: [fe_deploy]

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
taperole-1.4.3 roles/frontend_deploy/tasks/main.yml
taperole-1.4.2 roles/frontend_deploy/tasks/main.yml
taperole-1.4.1 roles/frontend_deploy/tasks/main.yml