Sha256: a4ea7dd88bc66b1be6f431291206cee198fed90b5f1fbbb7125a30833b61a955

Contents?: true

Size: 1.58 KB

Versions: 11

Compression:

Stored size: 1.58 KB

Contents

- name: Check if path exists
  stat: path={{ fe_app_path }}
  register: fe_app_path_stat

- name: Check if there are commited changes on {{ fe_app_branch }}
  remote_user: "{{ deployer_user.name }}"
  command: bash -lc "git fetch origin && git diff --name-only origin/{{ fe_app_branch }}"
  args:
    chdir: "{{fe_app_path}}"
  register: changes_on_remote
  when: fe_app_path_stat.stat.exists

- name: Inform User if there are no changes
  debug: msg={{no_changes_found_error.split('\n')}}
  when: fe_app_path_stat.stat.exists and changes_on_remote.stdout_lines == []

- 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

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

- 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'

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

- 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'

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
taperole-2.0.7 roles/frontend_deploy/tasks/main.yml
taperole-2.0.6 roles/frontend_deploy/tasks/main.yml
taperole-2.0.5 roles/frontend_deploy/tasks/main.yml
taperole-2.0.4 roles/frontend_deploy/tasks/main.yml
taperole-2.0.3 roles/frontend_deploy/tasks/main.yml
taperole-2.0.2 roles/frontend_deploy/tasks/main.yml
taperole-2.0.1 roles/frontend_deploy/tasks/main.yml
taperole-2.0.0 roles/frontend_deploy/tasks/main.yml
taperole-1.8.2 roles/frontend_deploy/tasks/main.yml
taperole-1.8.1 roles/frontend_deploy/tasks/main.yml
taperole-1.8.0 roles/frontend_deploy/tasks/main.yml