Skip to content

Commit

Permalink
github-bot: dont update nodejs/node repo
Browse files Browse the repository at this point in the history
Chore to keep playbook running smoothly without errors being generated.

Got this error when running the playbook:

```bash
$ ansible-playbook -i ../ansible-inventory ansible-playbook.yaml
...
TASK [Runtime dependencies | Clone node repo] **********************************
fatal: [infra-rackspace-debian8-x64-1]: FAILED! => {"changed": false, "failed": true, "msg": "Local modifications exist in repository (force=no)."}
```

Local changes to that nodejs/node repo is expected, as the github-bot
continously tries to backport PR patches onto staging branches.
Therefore simply avoiding this error by not trying to update that git
repo at all when the playbook is run -- as long as it is present,
we are happy.

PR-URL: nodejs#603
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
  • Loading branch information
phillipj authored Jan 30, 2017
1 parent a724f4e commit f358414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup/github-bot/ansible-playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
- name: Runtime dependencies | Clone node repo
become: yes
become_user: "{{ server_user }}"
git: repo=https://github.com/nodejs/node.git dest="/home/{{ server_user }}/repos/node"
git: repo=https://github.com/nodejs/node.git dest="/home/{{ server_user }}/repos/node" update=no
tags: runtime-dependencies

- name: Runtime dependencies | Config node repo author email
Expand Down

0 comments on commit f358414

Please sign in to comment.